Fix to regression using scp without setting ssh bin path in PATH variable

This commit is contained in:
manojampalam 2016-10-22 21:00:59 -07:00
parent 7506f83b59
commit 5831b09b84
1 changed files with 1 additions and 1 deletions

View File

@ -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");