From: jacob Date: Thu, 18 Aug 2011 10:47:45 +0000 (+0000) Subject: Fix a suspected bug in PSCP's SCP protocol fallback from r9214 (untested since X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/59235196008d80e529a0e764f6e2cd21b3e5cc8d?hp=a3e17bf8e4b527d0aecf32e634e617978fe5aa26 Fix a suspected bug in PSCP's SCP protocol fallback from r9214 (untested since I don't have access to a server that still needs this fallback). git-svn-id: svn://svn.tartarus.org/sgt/putty@9267 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/pscp.c b/pscp.c index ddf23ecc..abdb8fd7 100644 --- 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