Subject: bin/10879: su does not reset terminal settings after Ctrl-C
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Ian.Fry@sophos.com>
List: netbsd-bugs
Date: 08/22/2000 08:04:15
>Number:         10879
>Category:       bin
>Synopsis:       su does not reset terminal settings after Ctrl-C
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 22 08:05:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ian Fry
>Release:        Aug 20, 2000
>Organization:
	
>Environment:
System: NetBSD terry 1.5E NetBSD 1.5E (TERRY) #65: Wed Aug 16 13:34:23 BST 2000 ief@terry:/usr/src/sys/arch/i386/compile/TERRY i386


>Description:
   If you type Ctrl-C at the password prompt issued by 'su', the terminal
settings are not correctly restored.
>How-To-Repeat:
	Attempt to 'su' to another user (e.g. root), and press Ctrl-C at the
password prompt. Terminal echo setting remains off, and requires resetting
manually.
   This only seems to affect bash (I've also tried sh and csh). However, with
sh and csh, you need to press return after the Ctrl-C to get back to a shell
prompt.
>Fix:
	Enter an invalid password to abort the su attempt.
>Release-Note:
>Audit-Trail:
>Unformatted: