- typo: s/derefernce/dereference/g

Thanks to P.J. Day.
This commit is contained in:
Bernhard Reutner-Fischer 2006-04-18 14:17:49 +00:00
parent 0c013f5fc7
commit 18260d5099
3 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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