Fix to issue with absolute/relative paths for subsystem processes

This commit is contained in:
manojampalam 2016-10-21 15:08:39 -07:00
parent ad128b5c68
commit 74db643add

View File

@ -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));