aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-12 22:36:32 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-12 22:36:32 +0000
commit3ba93c04383e8ede9608fa91ed3058db1d213244 (patch)
tree45678305ae20b8e0c5b62c3542085e0d4afb0c26 /coreutils
parent4d149205c314bce1db57aca1c86ca0690d15b076 (diff)
downloadbusybox-3ba93c04383e8ede9608fa91ed3058db1d213244.tar.gz
fix segfault if user only specifies 1 file
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/comm.c b/coreutils/comm.c
index 6b7b9554c..f390490e2 100644
--- 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)