Skip to content

Commit 6ef5310

Browse files
committed
setup_terminal: fix an editing error introduced in 1.9.15.
--HG-- branch : 1.9
1 parent b16d194 commit 6ef5310

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

plugins/sudoers/sudoreplay.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ setup_terminal(struct eventlog *evlog, bool interactive, bool resize)
631631
ttyfd = open(_PATH_TTY, O_RDWR);
632632
if (ttyfd == -1)
633633
sudo_fatal("%s", U_("unable to set tty to raw mode"));
634-
if (ttyfd == -1)
635634
while (!sudo_term_raw(ttyfd, SUDO_TERM_ISIG)) {
636635
if (errno != EINTR)
637636
sudo_fatal("%s", U_("unable to set tty to raw mode"));

0 commit comments

Comments
 (0)