From 5f576615a1701e95380bdcf6bbed90447db860d9 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 7 Aug 2012 13:23:25 +0000 Subject: [PATCH] fix xdcp broken 3552171 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13445 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;