mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-03 12:14:42 +02:00
Fix to regression using scp without setting ssh bin path in PATH variable
This commit is contained in:
parent
7506f83b59
commit
5831b09b84
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user