Commit aa88ee36 authored by Russ Fish's avatar Russ Fish

Fix non-XML command-line args.

parent c90f651d
......@@ -127,6 +127,9 @@ delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
if (! getopts($optlist, \%options)) {
usage();
}
if (@ARGV < 4 && !defined($options{"X"}) ) {
usage();
}
if (defined($options{"d"})) {
$debug = 1;
}
......@@ -134,9 +137,9 @@ if (defined($options{"c"})) {
$compatmode = 1;
}
if (!defined($options{"X"})) {
my $pid = shift(@ARGV);
my $eid = shift(@ARGV);
my $link = shift(@ARGV);
$pid = shift(@ARGV);
$eid = shift(@ARGV);
$link = shift(@ARGV);
}
else {
$xmlfile = $options{"X"};
......@@ -197,9 +200,6 @@ if (defined($options{"s"})) {
die("*** Bad srcvnode name: $srcvnode.\n");
}
}
if (@ARGV < 4 && !defined($options{"X"}) ) {
usage();
}
#
# Untaint args.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment