]> granicus.if.org Git - sudo/commitdiff
For raw mode, don't bother clearing BRKINT or PARMRK and clear IUCLC
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 7 Aug 2009 21:06:54 +0000 (21:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 7 Aug 2009 21:06:54 +0000 (21:06 +0000)
if it is defined.

term.c

diff --git a/term.c b/term.c
index 301b396b6cbccd45cd1d83c79231448f1ab8c76a..92f381291eaeee01fee4e090aaa64abd9ff15d20 100644 (file)
--- a/term.c
+++ b/term.c
@@ -63,6 +63,9 @@ __unused static const char rcsid[] = "$Sudo$";
 #ifndef IEXTEN
 # define IEXTEN                0
 #endif
+#ifndef IUCLC
+# define IUCLC         0
+#endif
 
 #ifndef _POSIX_VDISABLE
 # ifdef VDISABLE
@@ -143,7 +146,7 @@ term_raw(fd)
        return(0);
     (void) memcpy(&term, &oterm, sizeof(term));
     /* Set terminal to raw mode */
-    term.c_iflag &= ~(BRKINT|ICRNL|IGNCR|INLCR|IXON|PARMRK);
+    term.c_iflag &= ~(ICRNL|IGNCR|INLCR|IUCLC|IXON);
     term.c_oflag &= ~OPOST;
     term.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
     term.c_cc[VMIN] = 1;