From 74db643add85a9d5e3ade42c37dc4ac2cfd7fdbc Mon Sep 17 00:00:00 2001 From: manojampalam Date: Fri, 21 Oct 2016 15:08:39 -0700 Subject: [PATCH] Fix to issue with absolute/relative paths for subsystem processes --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.c b/session.c index dfe8eb2..b0d6356 100644 --- a/session.c +++ b/session.c @@ -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));