Commit 5117b27a authored by Mike Hibler's avatar Mike Hibler

Range check the -z option.

parent 24bec3a6
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-2014 University of Utah and the Flux Group.
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -151,6 +151,10 @@ if (defined($options{"o"})) {
}
}
}
if ($zerofree && $zerofree !~ /^[0-2]$/) {
print STDERR "Improper -z option '$zerofree'\n";
usage();
}
#
# Figure out which nodes. Choice of nodes on command line, or all nodes in an
......
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