Skip to content

Commit 427f8af

Browse files
committed
2 parents e40d697 + 59a0cf6 commit 427f8af

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
@@ -813,7 +813,7 @@ do_exec_no_pty(Session *s, const char *command)
813813

814814
exit(1);
815815
}
816-
else {
816+
else if (s->ttyfd != -1) { /*attach to shell console */
817817
FreeConsole();
818818
if (!debug_flag)
819819
ImpersonateLoggedOnUser(hToken);

0 commit comments

Comments
 (0)