]> git.saurik.com Git - apt.git/blobdiff - methods/rsh.cc
debian/*.symbols: updated for new soname
[apt.git] / methods / rsh.cc
index 97b4ef1518b24e52a6229d2804a4d7a4dd1ce3df..21f0d0a22220bf466dd5b33aaf0165ceef0a60e5 100644 (file)
@@ -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();