summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-12 21:11:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-12 21:11:13 +0000
commit8b6913b8becbfe49c2eee39968a3f5102e817311 (patch)
treefbd356cd8465dad7abb61c356f94302ee14c7d0c /sys/kern
parent0ddef9da7a54649faa0e807fe89f12c5f3ecfd53 (diff)
from netbsd; Correct test for ECHONL (from der Mouse; PR#1922).
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 9c973a4d860..fee5af84486 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.63 1995/10/10 01:26:57 mycroft Exp $ */
+/* $NetBSD: tty.c,v 1.64 1996/01/10 20:52:27 pk Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1991, 1993
@@ -1765,7 +1765,7 @@ ttyecho(c, tp)
if (!ISSET(tp->t_state, TS_CNTTB))
CLR(tp->t_lflag, FLUSHO);
if ((!ISSET(tp->t_lflag, ECHO) &&
- (!ISSET(tp->t_lflag, ECHONL) || c == '\n')) ||
+ (!ISSET(tp->t_lflag, ECHONL) || c != '\n')) ||
ISSET(tp->t_lflag, EXTPROC))
return;
if (ISSET(tp->t_lflag, ECHOCTL) &&