svn commit: trunk/busybox/coreutils

aldot at busybox.net aldot at busybox.net
Wed Sep 20 15:29:14 UTC 2006


Author: aldot
Date: 2006-09-20 08:29:13 -0700 (Wed, 20 Sep 2006)
New Revision: 16162

Log:
- fix embarrassing typo of mine. Closes bug #1038


Modified:
   trunk/busybox/coreutils/cmp.c


Changeset:
Modified: trunk/busybox/coreutils/cmp.c
===================================================================
--- trunk/busybox/coreutils/cmp.c	2006-09-19 17:43:56 UTC (rev 16161)
+++ trunk/busybox/coreutils/cmp.c	2006-09-20 15:29:13 UTC (rev 16162)
@@ -56,7 +56,7 @@
 
 	opt = bb_getopt_ulflags(argc, argv, opt_chars);
 
-	if ((opt & (CMP_OPT_s|CMP_OPT_l))
+	if (((opt & (CMP_OPT_s|CMP_OPT_l)) == (CMP_OPT_s|CMP_OPT_l))
 			|| (((unsigned int)(--argc - optind)) > 1))
 		bb_show_usage();
 
@@ -103,7 +103,7 @@
 				 * make sure we fflush before writing to stderr. */
 				xfflush_stdout();
 			}
-			if (!opt & CMP_OPT_s) {
+			if (!(opt & CMP_OPT_s)) {
 				if (opt & CMP_OPT_l) {
 					line_pos = c1;	/* line_pos is unused in the -l case. */
 				}




More information about the busybox-cvs mailing list