]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix argument count check in dummy-man again
authorBernhard Voelker <mail@bernhard-voelker.de>
Mon, 22 Sep 2014 23:44:51 +0000 (01:44 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Mon, 22 Sep 2014 23:44:51 +0000 (01:44 +0200)
* man/dummy-man: Fix argument count check, now only permitting
exactly 1 argument, the program name.
Reported by Andreas Schwab <schwab@linux-m68k.org>

man/dummy-man

index 65b85d5556923ba4c9257c1becef6f913d2fac77..bf31912b2eae0a0cdf11242b8cc27d597d5cb92d 100755 (executable)
@@ -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 <<END