Skip to content

Commit 74db643

Browse files
author
manojampalam
committed
Fix to issue with absolute/relative paths for subsystem processes
1 parent ad128b5 commit 74db643

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
@@ -678,7 +678,7 @@ int do_exec_windows(Session *s, const char *command, int pty) {
678678
if (command == NULL || command[0] == '\0')
679679
fatal("expecting command for a subsystem");
680680

681-
if (command[1] != ':') /* absolute */
681+
if (command[1] == ':') /* absolute */
682682
exec_command = xstrdup(command);
683683
else {/*relative*/
684684
exec_command = malloc(strlen(progdir) + 1 + strlen(command));

0 commit comments

Comments
 (0)