From b24e1feb230d67732b514abbecf7bccb53644e90 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 28 Sep 2012 12:12:58 +0000 Subject: [PATCH] fix for defect 3117 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13912 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/RSYNC.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/RSYNC.pm b/perl-xCAT/xCAT/RSYNC.pm index e6e4cd3e9..1aad78ea3 100644 --- a/perl-xCAT/xCAT/RSYNC.pm +++ b/perl-xCAT/xCAT/RSYNC.pm @@ -159,8 +159,6 @@ sub remote_copy_command my @src_file = @{$$config{'destDir_srcFile'}{$dest_dir}{'same_dest_name'}}; - #Remove a file from the list if it does not exist - #@src_file = map { $_ if -e $_; } @src_file; my $src_file_list = join ' ', @src_file; if ($src_file_list) { @@ -176,7 +174,7 @@ sub remote_copy_command %{$$config{'destDir_srcFile'}{$dest_dir}{'diff_dest_name'}}; foreach my $src_file_diff_dest (keys %diff_dest_hash) { - next if !-e $src_file_diff_dest; + my $diff_basename = $diff_dest_hash{$src_file_diff_dest}; print RSCYCCMDFILE "$exec_path $sync_opt $src_file_diff_dest $dest_user_host:$dest_dir/$diff_basename\n";