From: Sami Kerola Date: Sun, 20 Feb 2011 12:21:17 +0000 (+0100) Subject: scriptreplay: bug in argument check X-Git-Tag: v2.20-rc1~520 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89601b8e39f93a6467a185d858d106bb38d44e71;p=thirdparty%2Futil-linux.git scriptreplay: bug in argument check Number of arguments cannot be at the same time too many and few. Signed-off-by: Sami Kerola --- diff --git a/misc-utils/scriptreplay.c b/misc-utils/scriptreplay.c index f8ee9e011c..992e949f90 100644 --- a/misc-utils/scriptreplay.c +++ b/misc-utils/scriptreplay.c @@ -133,7 +133,7 @@ main(int argc, char *argv[]) bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - if (argc < 2 && argc > 4) + if (argc < 2 || 4 < argc) usage(EXIT_FAILURE); tname = argv[1];