fix defect 3538653

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-07-02 12:57:24 +00:00
parent ee30877059
commit 1a292a871e

View File

@ -648,13 +648,15 @@ sub process_nodes
my $args = $newSNreq->{arg};
my $arraysize = @$args;
my $i = 0;
foreach (@$args) {
foreach my $sarg (@$args) {
if ($arraysize > 1) {
my $tmpfile =$synfiledir ;
$tmpfile .=$newSNreq->{arg}->[$i] ;
$newSNreq->{arg}->[$i] = $tmpfile;
$arraysize--;
$i++;
if (($sarg !~ /^-/) && ( $sarg !~ /^\//)) { # just a flag, skip
my $tmpfile =$synfiledir ;
$tmpfile .=$newSNreq->{arg}->[$i] ;
$newSNreq->{arg}->[$i] = $tmpfile;
$arraysize--;
$i++;
}
} else {
last;
}