projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d14920
)
fix segfault if user only specifies 1 file
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 May 2005 22:36:32 +0000
(22:36 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 May 2005 22:36:32 +0000
(22:36 -0000)
coreutils/comm.c
patch
|
blob
|
history
diff --git
a/coreutils/comm.c
b/coreutils/comm.c
index
6b7b955
..
f390490
100644
(file)
--- a/
coreutils/comm.c
+++ b/
coreutils/comm.c
@@
-142,7
+142,7
@@
int comm_main (int argc, char **argv)
opt = bb_getopt_ulflags(argc, argv, "123");
- if (
(opt & 0x80000000UL) || (optind == argc)
)
+ if (
optind != argc + 2
)
bb_show_usage();
if (opt & COMM_OPT_1)