Fix arg passing bug in rsc.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 24 Aug 2007 12:37:09 +0000 (12:37 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 24 Aug 2007 12:37:09 +0000 (12:37 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1097 959494ce-11ee-0310-bf91-de5d638817bd

rsc

diff --git a/rsc b/rsc
index 0e96deb..9e7e760 100755 (executable)
--- 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 "$!";
 }