diff --git a/src/exec_pty.c b/src/exec_pty.c index ce7ca3b09..710877395 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -120,7 +120,7 @@ pty_cleanup(void) { debug_decl(cleanup, SUDO_DEBUG_EXEC); - if (!TAILQ_EMPTY(&io_plugins) && io_fds[SFD_USERTTY] != -1) + if (io_fds[SFD_USERTTY] != -1) sudo_term_restore(io_fds[SFD_USERTTY], false); if (utmp_user != NULL) utmp_logout(slavename, 0);