svn commit: trunk/busybox: archival coreutils testsuite

aldot at busybox.net aldot at busybox.net
Tue Apr 18 14:17:51 UTC 2006


Author: aldot
Date: 2006-04-18 07:17:49 -0700 (Tue, 18 Apr 2006)
New Revision: 14914

Log:
- typo: s/derefernce/dereference/g
  Thanks to P.J. Day.


Modified:
   trunk/busybox/archival/tar.c
   trunk/busybox/coreutils/stat.c
   trunk/busybox/testsuite/all_sourcecode.tests


Changeset:
Modified: trunk/busybox/archival/tar.c
===================================================================
--- trunk/busybox/archival/tar.c	2006-04-18 12:46:56 UTC (rev 14913)
+++ trunk/busybox/archival/tar.c	2006-04-18 14:17:49 UTC (rev 14914)
@@ -596,7 +596,7 @@
 #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 @@
 		{
 			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);

Modified: trunk/busybox/coreutils/stat.c
===================================================================
--- trunk/busybox/coreutils/stat.c	2006-04-18 12:46:56 UTC (rev 14913)
+++ trunk/busybox/coreutils/stat.c	2006-04-18 14:17:49 UTC (rev 14914)
@@ -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 @@
 {
 	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;
 	}

Modified: trunk/busybox/testsuite/all_sourcecode.tests
===================================================================
--- trunk/busybox/testsuite/all_sourcecode.tests	2006-04-18 12:46:56 UTC (rev 14913)
+++ trunk/busybox/testsuite/all_sourcecode.tests	2006-04-18 14:17:49 UTC (rev 14914)
@@ -48,6 +48,7 @@
 		-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




More information about the busybox-cvs mailing list