bin/73423: stty -sane disables echo

Michiel Boland michiel at boland.org
Tue Nov 2 08:20:28 PST 2004


>Number:         73423
>Category:       bin
>Synopsis:       stty -sane disables echo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 02 16:20:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michiel Boland
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD leefnet.office.internl.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Nov 2 14:55:25 CET 2004 root at leefnet.office.internl.net:/usr/obj/usr/src/sys/LEEFNET i386


	
>Description:
	After 'stty sane' is executed, the terminal no longer echos.
>How-To-Repeat:
	Type 'stty sane'
>Fix:

--- /usr/src/bin/stty/key.c	Tue Apr  6 22:06:53 2004
+++ key.c	Tue Nov  2 17:02:57 2004
@@ -263,7 +263,7 @@
 	ip->t.c_iflag |= ICRNL;
 	/* preserve user-preference flags in lflag */
 #define	LKEEP	(ECHOKE|ECHOE|ECHOK|ECHOPRT|ECHOCTL|ALTWERASE|TOSTOP|NOFLSH)
-	ip->t.c_lflag = TTYDEF_LFLAG | (ip->t.c_lflag & LKEEP);
+	ip->t.c_lflag = TTYDEF_LFLAG_ECHO | (ip->t.c_lflag & LKEEP);
 	ip->t.c_oflag = TTYDEF_OFLAG;
 	ip->set = 1;
 }
	



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list