From 764969966fadc4c7c625600c42b5ab129c09d3cb Mon Sep 17 00:00:00 2001 From: Nigel Kukard Date: Sun, 30 Oct 2016 00:48:02 +0000 Subject: [PATCH] Fixed usage of forwarded rsync We need to use quotes around the -U option We use the same options as we do for the direct rsync -vP --- awit-ssh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awit-ssh b/awit-ssh index 8f37d2b..a0388e1 100755 --- a/awit-ssh +++ b/awit-ssh @@ -637,12 +637,13 @@ if (defined($forwardSocket)) { my $sshCmd = join(' ','/usr/bin/ssh', @sshArgs, # Override where we connecting to - '-o',"ProxyCommand=nc -U $forwardSocket", + '-o',"ProxyCommand='nc -U $forwardSocket'", # Explicitly disable control master '-o','ControlMaster=no', ); # Run rsync system('/usr/bin/rsync', + '-vP', '-e',$sshCmd, @rsyncParams ); -- GitLab