From 41da19ff06857b4565a3510ef4aeddb548748ca0 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 12 May 2010 14:00:25 +0000 Subject: [PATCH] add rsh support for rsync on the xdcp -r flag git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/RSYNC.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl-xCAT/xCAT/RSYNC.pm b/perl-xCAT/xCAT/RSYNC.pm index fa53b78d8..8018d3d01 100644 --- a/perl-xCAT/xCAT/RSYNC.pm +++ b/perl-xCAT/xCAT/RSYNC.pm @@ -194,6 +194,10 @@ sub remote_copy_command $$config{'dest-file'} && push @dest_file, $$config{'dest-file'}; push @command, $exec_path; + if ($usersh == 1) { # using rsh + push @command, "--rsh"; + push @command, "/bin/rsh"; + } $$config{'preserve'} && push @command, ('-p', '-t'); $$config{'recursive'} && push @command, '-r';