From: fredrik Date: Fri, 24 Aug 2007 12:37:09 +0000 (+0000) Subject: Fix arg passing bug in rsc. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=222d20343e909e025728ae41acc5ad49b49a3c04;p=utils.git 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 --- 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 "$!"; }