projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ccc100
)
- fix embarrassing typo of mine. Closes bug #1038
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Wed, 20 Sep 2006 15:29:13 +0000
(15:29 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Wed, 20 Sep 2006 15:29:13 +0000
(15:29 -0000)
coreutils/cmp.c
patch
|
blob
|
history
diff --git
a/coreutils/cmp.c
b/coreutils/cmp.c
index ae3f5027927dd8ffcb15db04fa55a2a1363bcf82..d26c3db8ce8b8c0be6bc80ac71add34eb8fdb599 100644
(file)
--- a/
coreutils/cmp.c
+++ b/
coreutils/cmp.c
@@
-56,7
+56,7
@@
int cmp_main(int argc, char **argv)
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
@@
int cmp_main(int argc, char **argv)
* 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. */
}