1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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).

[originally from svn r9267]
[r9214 == a1f3b7a358]
This commit is contained in:
Jacob Nevins 2011-08-18 10:47:45 +00:00
parent 13290fe1e4
commit 20f508e034

2
pscp.c
View File

@ -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