fix for bugg 2915687: error checking for chtab syntax

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-01-04 06:33:12 +00:00
parent 21be317220
commit d43b6370a7

View File

@ -67,6 +67,11 @@ if ($keypairs[0] !~ /([^\.\=]+)\.([^\.\=]+)\=(.+)/) {
m/(.*)=(.*)/;
my $key=$1;
my $val=$2;
if (!defined($key) || !defined($val)) {
print "Incorrect argument \"$_\".\n";
usage;
exit(1);
}
$keyhash{$key}=$val;
}
} else {