Skip to content

Commit

Permalink
Fix to regression using scp without setting ssh bin path in PATH vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
manojampalam committed Oct 23, 2016
1 parent 7506f83 commit 5831b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5831b09

Please sign in to comment.