commit | 3ba93c04383e8ede9608fa91ed3058db1d213244 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Thu May 12 22:36:32 2005 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Thu May 12 22:36:32 2005 +0000 |
tree | 45678305ae20b8e0c5b62c3542085e0d4afb0c26 | |
parent | 4d149205c314bce1db57aca1c86ca0690d15b076 [diff] |
fix segfault if user only specifies 1 file
diff --git a/coreutils/comm.c b/coreutils/comm.c index 6b7b955..f390490 100644 --- a/coreutils/comm.c +++ b/coreutils/comm.c
@@ -142,7 +142,7 @@ opt = bb_getopt_ulflags(argc, argv, "123"); - if ((opt & 0x80000000UL) || (optind == argc)) + if (optind != argc + 2) bb_show_usage(); if (opt & COMM_OPT_1)