summaryrefslogtreecommitdiff
path: root/sshtty.c
diff options
context:
space:
mode:
authordtucker <dtucker>2003-07-19 09:56:18 +0000
committerdtucker <dtucker>2003-07-19 09:56:18 +0000
commitae44760015b055f6c11eae65b90338eb9c694f35 (patch)
tree6826a5cb112b95e72f4a2ed8167458f443505f7d /sshtty.c
parent381106f85382be4193a478e2277c1927ac38529c (diff)
downloadopenssh-ae44760015b055f6c11eae65b90338eb9c694f35.tar.gz
- markus@cvs.openbsd.org 2003/07/16 10:36:28
[sshtty.c] clear IUCLC in enter_raw_mode; from rob@pitman.co.za; ok deraadt@, fgs@
Diffstat (limited to 'sshtty.c')
-rw-r--r--sshtty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshtty.c b/sshtty.c
index 5c016f80..2f47b06d 100644
--- a/sshtty.c
+++ b/sshtty.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshtty.c,v 1.3 2002/03/04 17:27:39 stevesk Exp $");
+RCSID("$OpenBSD: sshtty.c,v 1.4 2003/07/16 10:36:28 markus Exp $");
#include "sshtty.h"
#include "log.h"
@@ -80,6 +80,9 @@ enter_raw_mode(void)
_saved_tio = tio;
tio.c_iflag |= IGNPAR;
tio.c_iflag &= ~(ISTRIP | INLCR | IGNCR | ICRNL | IXON | IXANY | IXOFF);
+#ifdef IUCLC
+ tio.c_iflag &= ~IUCLC;
+#endif
tio.c_lflag &= ~(ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHONL);
#ifdef IEXTEN
tio.c_lflag &= ~IEXTEN;