Bug 19532

Summary: cdcontrol does not handle EOF on stdin properly
Product: Base System Reporter: adrian <adrian>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description adrian 2000-06-26 21:00:01 UTC
	cdcontrol reprompts the user when EOF is seen on stdin and 
	does not exit.

Fix: Apply the following patch.  The semantics of the value returned
	by the input() function are not defined since the return value is
	not used.  I changed it to return values that are equivalent to
	the user typing the "quit" command when EOF is seen.  EOF is
	assummed when either fgets() or el_gets() fail.
How-To-Repeat: 
	Run cdcontrol and press your tty EOF character, usually ^D, a
	few times.  You will see something like the following:

	# cdcontrol
	Compact Disc Control utility, version 2.0
	Type `?' for command list

	cdcontrol> cdcontrol> cdcontrol>
Comment 1 Søren Schmidt freebsd_committer freebsd_triage 2001-05-30 11:31:02 UTC
State Changed
From-To: open->closed

Fixed in -current