X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/ee07dce4bc01900faf5c9b14e14803705e239b5d..eedb14ccbad88290f0f8627aa75971c9140642db:/pscp.c?ds=sidebyside 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