diff options
Diffstat (limited to 'libexec/telnetd/sys_term.c')
| -rw-r--r-- | libexec/telnetd/sys_term.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index e06d3b5bf065..cde67833dfb4 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -611,17 +611,11 @@ tty_israw() tty_binaryin(on) int on; { +/* Make 8-bit clean mode in any case */ #ifndef USE_TERMIO - if (on) - termbuf.lflags |= LPASS8; - else - termbuf.lflags &= ~LPASS8; + termbuf.lflags |= LPASS8; #else - if (on) { - termbuf.c_iflag &= ~ISTRIP; - } else { - termbuf.c_iflag |= ISTRIP; - } + termbuf.c_iflag &= ~ISTRIP; #endif } |
