Fix - attach PTY only when requested

This commit is contained in:
Manoj Ampalam 2016-09-30 13:22:01 -07:00
parent 8efe020478
commit a521817e49
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ do_exec_no_pty(Session *s, const char *command)
exit(1); exit(1);
} }
else { else if (s->ttyfd != -1) { /*attach to shell console */
FreeConsole(); FreeConsole();
if (!debug_flag) if (!debug_flag)
ImpersonateLoggedOnUser(hToken); ImpersonateLoggedOnUser(hToken);