From: Bernhard Voelker Date: Mon, 22 Sep 2014 23:44:51 +0000 (+0200) Subject: build: fix argument count check in dummy-man again X-Git-Tag: v8.24~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2057b20b6c84d792816898dcded905bfdb146f;p=thirdparty%2Fcoreutils.git build: fix argument count check in dummy-man again * man/dummy-man: Fix argument count check, now only permitting exactly 1 argument, the program name. Reported by Andreas Schwab --- diff --git a/man/dummy-man b/man/dummy-man index 65b85d5556..bf31912b2e 100755 --- a/man/dummy-man +++ b/man/dummy-man @@ -39,7 +39,7 @@ while test $# -gt 0; do done test $# -gt 0 || fatal_ "missing argument" -test $# -gt 1 || fatal_ "too many non-option arguments" +test $# -le 1 || fatal_ "too many non-option arguments" baseout=`basename_ "$output"` sed 's/^/WARNING: /' >&2 <