Skip to content

Commit 2f216a3

Browse files
AZero13millert
authored andcommitted
Term: ECHO|ECHONL|ICANON belong to c_lflag, not oflag
1 parent 26b2f55 commit 2f216a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/term.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ sudo_term_is_raw_int(struct termios *term)
272272
if (ISSET(term->c_oflag, OPOST))
273273
debug_return_bool(false);
274274

275-
if (ISSET(term->c_oflag, ECHO|ECHONL|ICANON))
275+
if (ISSET(term->c_lflag, ECHO|ECHONL|ICANON))
276276
debug_return_bool(false);
277277

278278
debug_return_bool(true);

0 commit comments

Comments
 (0)