From: Todd C. Miller Date: Sun, 12 Jul 2009 21:17:13 +0000 (+0000) Subject: If no arg assume def_data.in X-Git-Tag: SUDO_1_7_3~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51e292a47459310f9cd6745005afb59af30107c2;p=sudo If no arg assume def_data.in --- diff --git a/mkdefaults b/mkdefaults index f125e0452..2a0ba8d7c 100755 --- a/mkdefaults +++ b/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/;