diff options
author | Sami Kerola | 2011-02-20 13:21:17 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-21 16:54:48 +0100 |
commit | 89601b8e39f93a6467a185d858d106bb38d44e71 (patch) | |
tree | 57b1778828afdbca60bcc8a26d21098982a71edc /misc-utils/scriptreplay.c | |
parent | script: inform about long options in script manual page (diff) | |
download | kernel-qcow2-util-linux-89601b8e39f93a6467a185d858d106bb38d44e71.tar.gz kernel-qcow2-util-linux-89601b8e39f93a6467a185d858d106bb38d44e71.tar.xz kernel-qcow2-util-linux-89601b8e39f93a6467a185d858d106bb38d44e71.zip |
scriptreplay: bug in argument check
Number of arguments cannot be at the same time too many and few.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/scriptreplay.c')
-rw-r--r-- | misc-utils/scriptreplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/scriptreplay.c b/misc-utils/scriptreplay.c index f8ee9e011..992e949f9 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]; |