diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-03-11 14:02:14 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-03-11 14:02:14 +0100 |
commit | fee040cf50af1e9bb8e3c46e0d8738119d95f10e (patch) | |
tree | 50a1564bf228a291146dca642533c27fba8a142a /methods/rsh.cc | |
parent | 949a049861cd3da61b43b24fc24f157a920ea581 (diff) | |
parent | d6cc7079e895e76ad9d086fcc6a40224dd41bb62 (diff) |
merged from the mvo branch
Diffstat (limited to 'methods/rsh.cc')
-rw-r--r-- | methods/rsh.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/rsh.cc b/methods/rsh.cc index 97b4ef151..21f0d0a22 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -110,6 +110,8 @@ bool RSHConn::Connect(string Host, string User) // Probably should do // dup2(open("/dev/null",O_RDONLY),STDERR_FILENO); + Args[i++] = Prog; + // Insert user-supplied command line options Configuration::Item const *Opts = RshOptions; if (Opts != 0) @@ -123,7 +125,6 @@ bool RSHConn::Connect(string Host, string User) } } - Args[i++] = Prog; if (User.empty() == false) { Args[i++] = "-l"; Args[i++] = User.c_str(); |