summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/mkdefaults
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2009-12-07 18:43:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2009-12-07 18:43:12 +0000
commit6bfcd37f1f016756dee9e8afa2e1047ced8fd290 (patch)
treee72b60b6ec6b4eaa5e999e93987c77514f86c35c /usr.bin/sudo/mkdefaults
parentbef02f94761c7f7a003178056c11d51a8ada33ce (diff)
update to sudo 1.7.2p2
Diffstat (limited to 'usr.bin/sudo/mkdefaults')
-rw-r--r--usr.bin/sudo/mkdefaults4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sudo/mkdefaults b/usr.bin/sudo/mkdefaults
index f125e045258..2a0ba8d7cef 100644
--- a/usr.bin/sudo/mkdefaults
+++ b/usr.bin/sudo/mkdefaults
@@ -16,9 +16,9 @@ if ($#ARGV > 0 && $ARGV[0] eq "-o") {
$header .= '.h';
$cfile .= '.c';
}
-die "usage: $0 input_file\n" unless $#ARGV == 0;
+die "usage: $0 [input_file]\n" unless $#ARGV == -1 || $#ARGV == 0;
-$infile = $ARGV[0];
+$infile = $ARGV[0] || "def_data.in";
if (!defined($header)) {
$header = $infile;
$header =~ s/(\.in)?$/.h/;