summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-02-12 09:50:51 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-02-12 09:50:51 +0000
commit58e438bb583e8f9bf4979d0900b454112a97002e (patch)
treeae5ef5d505e176984a1bec69caed75e52da076c6
parentadceaad04f6fd5872996207d9bc5e69aa07f9584 (diff)
Don't clear ICRNL when editing mode is off, so that character local echo
mode don't echo ^M locally analysis and patch from Stanislav Brabec (sbrabec (at) suse.cz)
-rw-r--r--usr.bin/telnet/sys_bsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/telnet/sys_bsd.c b/usr.bin/telnet/sys_bsd.c
index 1ccb7d6504f..d88e226fdf1 100644
--- a/usr.bin/telnet/sys_bsd.c
+++ b/usr.bin/telnet/sys_bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_bsd.c,v 1.28 2014/09/09 03:41:08 guenther Exp $ */
+/* $OpenBSD: sys_bsd.c,v 1.29 2015/02/12 09:50:50 guenther Exp $ */
/* $NetBSD: sys_bsd.c,v 1.11 1996/02/28 21:04:10 thorpej Exp $ */
/*
@@ -310,7 +310,6 @@ TerminalNewMode(int f)
tmp_tc.c_lflag |= ICANON;
} else {
tmp_tc.c_lflag &= ~ICANON;
- tmp_tc.c_iflag &= ~ICRNL;
tmp_tc.c_cc[VMIN] = 1;
tmp_tc.c_cc[VTIME] = 0;
}