diff options
-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 dcc2f16..e4008b0 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -596,7 +596,7 @@ static char get_header_tar_Z(archive_handle_t *archive_handle) #define TAR_OPT_AFTER_START 8 #define CTX_CREATE (1 << (TAR_OPT_AFTER_START)) -#define TAR_OPT_DEREFERNCE (1 << (TAR_OPT_AFTER_START + 1)) +#define TAR_OPT_DEREFERENCE (1 << (TAR_OPT_AFTER_START + 1)) #ifdef CONFIG_FEATURE_TAR_CREATE # define TAR_OPT_STR_CREATE "ch" # define TAR_OPT_AFTER_CREATE TAR_OPT_AFTER_START + 2 @@ -851,7 +851,8 @@ int tar_main(int argc, char **argv) { verboseFlag = TRUE; } - writeTarFile(tar_handle->src_fd, verboseFlag, opt & TAR_OPT_DEREFERNCE, tar_handle->accept, + writeTarFile(tar_handle->src_fd, verboseFlag, opt & TAR_OPT_DEREFERENCE, + tar_handle->accept, tar_handle->reject, zipMode); } else { while (get_header_ptr(tar_handle) == EXIT_SUCCESS); diff --git a/coreutils/stat.c b/coreutils/stat.c index 166ce48..d58eae1 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -28,7 +28,7 @@ /* vars to control behavior */ #define OPT_TERSE 2 -#define OPT_DEREFERNCE 4 +#define OPT_DEREFERENCE 4 static long flags; static char const *file_type(struct stat const *st) @@ -424,7 +424,7 @@ static int do_stat(char const *filename, char const *format) { struct stat statbuf; - if ((flags & OPT_DEREFERNCE ? stat : lstat) (filename, &statbuf) != 0) { + if ((flags & OPT_DEREFERENCE ? stat : lstat) (filename, &statbuf) != 0) { bb_perror_msg("cannot stat '%s'", filename); return 0; } diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests index dd92426..976f308 100755 --- a/testsuite/all_sourcecode.tests +++ b/testsuite/all_sourcecode.tests @@ -48,6 +48,7 @@ find $srcdir/../ \ -e '\<formated\>' \ -e '\<algorithic\>' \ -e '\<deamon\>' \ + -e '\<derefernce\>' \ | sed -e "s:^$srcdir/\.\./::g" > src.typos testing "Common typos" "cat src.typos" "" "" "" rm -f src.typos |