]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a suspected bug in PSCP's SCP protocol fallback from r9214 (untested since
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 18 Aug 2011 10:47:45 +0000 (10:47 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 18 Aug 2011 10:47:45 +0000 (10:47 +0000)
I don't have access to a server that still needs this fallback).

[originally from svn r9267]
[r9214 == a1f3b7a358adaa7c2a98359cd0373aa823eeb14b]

pscp.c

diff --git a/pscp.c b/pscp.c
index ddf23ecc81ed7eea3ed372cc2bdc0ffa5a1484de..abdb8fd707e23b007abaa4f37eac87157f0ed02b 100644 (file)
--- a/pscp.c
+++ b/pscp.c
@@ -450,7 +450,7 @@ static void do_cmd(char *host, char *user, char *cmd)
        if (try_scp) {
            /* Fallback is to use the provided scp command. */
            fallback_cmd_is_sftp = 0;
-           conf_set_str(conf, CONF_remote_cmd2, "sftp");
+           conf_set_str(conf, CONF_remote_cmd2, cmd);
            conf_set_int(conf, CONF_ssh_subsys2, FALSE);
        } else {
            /* Since we're not going to try SCP, we may as well try