From 222d20343e909e025728ae41acc5ad49b49a3c04 Mon Sep 17 00:00:00 2001 From: fredrik Date: Fri, 24 Aug 2007 12:37:09 +0000 Subject: [PATCH] Fix arg passing bug in rsc. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1097 959494ce-11ee-0310-bf91-de5d638817bd --- rsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rsc b/rsc index 0e96deb..9e7e760 100755 --- a/rsc +++ b/rsc @@ -37,6 +37,8 @@ if($ARGV[0] eq "-s") { s/([\\\n])/\\$1/g; $arg .= "$_\n"; } - exec "ssh", "$host", "rsc", "-s", encode_base64($arg); + $ea = encode_base64($arg); + $ea =~ s/\n//g; + exec "ssh", "$host", "rsc", "-s", $ea; die "$!"; } -- 2.11.0