From: deraadt Date: Fri, 12 Jan 1996 21:11:12 +0000 (+0000) Subject: from netbsd; Correct test for ECHONL (from der Mouse; PR#1922). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=792c04d9f818ccf02d9aeec57d220bccf1a98b00;p=openbsd from netbsd; Correct test for ECHONL (from der Mouse; PR#1922). --- 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) &&