fix xdcp broken 3552171

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13446 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-08-07 13:25:52 +00:00
parent 6a491bec27
commit af3efe7170

View File

@ -615,12 +615,16 @@ sub process_nodes
{
# have to change each file path and add the SNsynfiledir
# except the last entry which is the destination on the computenode
# skip flags
my $args = $newSNreq->{arg};
my $arraysize = @$args;
my $i = 0;
foreach my $sarg (@$args) {
if ($arraysize > 1) {
if (($sarg !~ /^-/) && ( $sarg !~ /^\//)) { # just a flag, skip
if ($sarg =~ /^-/) { # just a flag, skip
$arraysize--;
$i++;
} else {
my $tmpfile =$synfiledir ;
$tmpfile .=$newSNreq->{arg}->[$i] ;
$newSNreq->{arg}->[$i] = $tmpfile;