mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-20 20:44:50 +02:00
Fix to issue with absolute/relative paths for subsystem processes
This commit is contained in:
parent
ad128b5c68
commit
74db643add
@ -678,7 +678,7 @@ int do_exec_windows(Session *s, const char *command, int pty) {
|
||||
if (command == NULL || command[0] == '\0')
|
||||
fatal("expecting command for a subsystem");
|
||||
|
||||
if (command[1] != ':') /* absolute */
|
||||
if (command[1] == ':') /* absolute */
|
||||
exec_command = xstrdup(command);
|
||||
else {/*relative*/
|
||||
exec_command = malloc(strlen(progdir) + 1 + strlen(command));
|
||||
|
Loading…
x
Reference in New Issue
Block a user