fix defect 3538653

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-06-28 15:51:50 +00:00
parent 3bbc6381fd
commit 0ceaff865c

View File

@ -643,7 +643,22 @@ sub process_nodes
# xdsh and xdcp pull just use the input request
if (($command eq "xdcp") && ($::dcppull == 0))
{
$newSNreq->{arg}->[-2] = $::SNpath;
# have to change each file path and add the SNsynfiledir
# except the last entry which is the destination on the computenode
my $args = $newSNreq->{arg};
my $arraysize = @$args;
my $i = 0;
foreach (@$args) {
if ($arraysize > 1) {
my $tmpfile =$synfiledir ;
$tmpfile .=$newSNreq->{arg}->[$i] ;
$newSNreq->{arg}->[$i] = $tmpfile;
$arraysize--;
$i++;
} else {
last;
}
}
} else { # if xdsh -e
if ($::dshexecute) { # put in new path from SN directory
my $destination=$synfiledir . $::dshexecute;