From 0ceaff865c03aca0f6ddc7c501a541cedc8fba9b Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 28 Jun 2012 15:51:50 +0000 Subject: [PATCH] fix defect 3538653 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index fe741045e..7f77d4cb3 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -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;