Skip to content

Commit 5831b09

Browse files
author
manojampalam
committed
Fix to regression using scp without setting ssh bin path in PATH variable
1 parent 7506f83 commit 5831b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ int do_exec_windows(Session *s, const char *command, int pty) {
673673
fcntl(pipeerr[0], F_SETFD, FD_CLOEXEC);
674674

675675
/* prepare exec - path used with CreateProcess() */
676-
if (s->is_subsystem) {
676+
if (s->is_subsystem || (command && memcmp(command, "scp", 3) == 0)) {
677677
/* relative or absolute */
678678
if (command == NULL || command[0] == '\0')
679679
fatal("expecting command for a subsystem");

0 commit comments

Comments
 (0)