From 5831b09b84205e9d10beeefcf901b6a281a8edfe Mon Sep 17 00:00:00 2001 From: manojampalam Date: Sat, 22 Oct 2016 21:00:59 -0700 Subject: [PATCH] Fix to regression using scp without setting ssh bin path in PATH variable --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.c b/session.c index b0d63566..79c5001b 100644 --- a/session.c +++ b/session.c @@ -673,7 +673,7 @@ int do_exec_windows(Session *s, const char *command, int pty) { fcntl(pipeerr[0], F_SETFD, FD_CLOEXEC); /* prepare exec - path used with CreateProcess() */ - if (s->is_subsystem) { + if (s->is_subsystem || (command && memcmp(command, "scp", 3) == 0)) { /* relative or absolute */ if (command == NULL || command[0] == '\0') fatal("expecting command for a subsystem");