From c5734bad6fde191ff67054878cf494906082027b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 10 Mar 2011 15:57:50 +0100 Subject: * debian/zzapt.cron.daily: - move cron job to the end of execution (LP: #727685) * methods/rsh.cc - fix rsh/ssh option parsing (LP: #678080), thanks to Ville Mattila --- methods/rsh.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'methods/rsh.cc') 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(); -- cgit v1.2.3