diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-18 14:17:49 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-18 14:17:49 +0000 |
commit | 18260d5099a8791f4af3bbf97e0c11f8755d233b (patch) | |
tree | 79224966cbe20fc78a836d04e86526f5dc9d7058 | |
parent | 0c013f5fc7abbc10265b26c214b33a25c65bd16f (diff) | |
download | busybox-w32-18260d5099a8791f4af3bbf97e0c11f8755d233b.tar.gz busybox-w32-18260d5099a8791f4af3bbf97e0c11f8755d233b.tar.bz2 busybox-w32-18260d5099a8791f4af3bbf97e0c11f8755d233b.zip |
- typo: s/derefernce/dereference/g
Thanks to P.J. Day.
-rw-r--r-- | archival/tar.c | 5 | ||||
-rw-r--r-- | coreutils/stat.c | 4 | ||||
-rwxr-xr-x | testsuite/all_sourcecode.tests | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index dcc2f163e..e4008b0c9 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -596,7 +596,7 @@ static char get_header_tar_Z(archive_handle_t *archive_handle) | |||
596 | #define TAR_OPT_AFTER_START 8 | 596 | #define TAR_OPT_AFTER_START 8 |
597 | 597 | ||
598 | #define CTX_CREATE (1 << (TAR_OPT_AFTER_START)) | 598 | #define CTX_CREATE (1 << (TAR_OPT_AFTER_START)) |
599 | #define TAR_OPT_DEREFERNCE (1 << (TAR_OPT_AFTER_START + 1)) | 599 | #define TAR_OPT_DEREFERENCE (1 << (TAR_OPT_AFTER_START + 1)) |
600 | #ifdef CONFIG_FEATURE_TAR_CREATE | 600 | #ifdef CONFIG_FEATURE_TAR_CREATE |
601 | # define TAR_OPT_STR_CREATE "ch" | 601 | # define TAR_OPT_STR_CREATE "ch" |
602 | # define TAR_OPT_AFTER_CREATE TAR_OPT_AFTER_START + 2 | 602 | # define TAR_OPT_AFTER_CREATE TAR_OPT_AFTER_START + 2 |
@@ -851,7 +851,8 @@ int tar_main(int argc, char **argv) | |||
851 | { | 851 | { |
852 | verboseFlag = TRUE; | 852 | verboseFlag = TRUE; |
853 | } | 853 | } |
854 | writeTarFile(tar_handle->src_fd, verboseFlag, opt & TAR_OPT_DEREFERNCE, tar_handle->accept, | 854 | writeTarFile(tar_handle->src_fd, verboseFlag, opt & TAR_OPT_DEREFERENCE, |
855 | tar_handle->accept, | ||
855 | tar_handle->reject, zipMode); | 856 | tar_handle->reject, zipMode); |
856 | } else { | 857 | } else { |
857 | while (get_header_ptr(tar_handle) == EXIT_SUCCESS); | 858 | while (get_header_ptr(tar_handle) == EXIT_SUCCESS); |
diff --git a/coreutils/stat.c b/coreutils/stat.c index 166ce4824..d58eae10e 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | /* vars to control behavior */ | 29 | /* vars to control behavior */ |
30 | #define OPT_TERSE 2 | 30 | #define OPT_TERSE 2 |
31 | #define OPT_DEREFERNCE 4 | 31 | #define OPT_DEREFERENCE 4 |
32 | static long flags; | 32 | static long flags; |
33 | 33 | ||
34 | static char const *file_type(struct stat const *st) | 34 | static char const *file_type(struct stat const *st) |
@@ -424,7 +424,7 @@ static int do_stat(char const *filename, char const *format) | |||
424 | { | 424 | { |
425 | struct stat statbuf; | 425 | struct stat statbuf; |
426 | 426 | ||
427 | if ((flags & OPT_DEREFERNCE ? stat : lstat) (filename, &statbuf) != 0) { | 427 | if ((flags & OPT_DEREFERENCE ? stat : lstat) (filename, &statbuf) != 0) { |
428 | bb_perror_msg("cannot stat '%s'", filename); | 428 | bb_perror_msg("cannot stat '%s'", filename); |
429 | return 0; | 429 | return 0; |
430 | } | 430 | } |
diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests index dd92426da..976f30887 100755 --- a/testsuite/all_sourcecode.tests +++ b/testsuite/all_sourcecode.tests | |||
@@ -48,6 +48,7 @@ find $srcdir/../ \ | |||
48 | -e '\<formated\>' \ | 48 | -e '\<formated\>' \ |
49 | -e '\<algorithic\>' \ | 49 | -e '\<algorithic\>' \ |
50 | -e '\<deamon\>' \ | 50 | -e '\<deamon\>' \ |
51 | -e '\<derefernce\>' \ | ||
51 | | sed -e "s:^$srcdir/\.\./::g" > src.typos | 52 | | sed -e "s:^$srcdir/\.\./::g" > src.typos |
52 | testing "Common typos" "cat src.typos" "" "" "" | 53 | testing "Common typos" "cat src.typos" "" "" "" |
53 | rm -f src.typos | 54 | rm -f src.typos |