From af3efe7170b15e1a9d5baaeed2dd150500fda6f2 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 7 Aug 2012 13:25:52 +0000 Subject: [PATCH] fix xdcp broken 3552171 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13446 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index d1d772aa2..2d9f92b1c 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -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;