Bug 15208

Summary: bug in tty (the program :)
Product: Base System Reporter: Meyser+bugs.freebsd.org
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-STABLE   
Hardware: Any   
OS: Any   

Description Meyser+bugs.freebsd.org 1999-12-01 16:30:02 UTC
	Serial (dial) devices are numbered /dev/cuaa0 ... /dev/cuaa9
	for the first 9 devices. then 10th device gets /dev/cuaaa acording
	to /dev/MAKEDEV. The next gets /dev/cuaab an so on.

	If you are on /dev/cuaaa ans use "tty" to determine wich device you
	are on "tty" reports "/dev/cuaa10". I think this is a bug in "tty"
	ore to be more specific in "ttyname()". 

	I think this affects also all other serial devices 
	( cuaia? cuala? ttyd? ttyid? ttyld? )

How-To-Repeat: 
	On a system with 11 or more  serial ports type 
	"tty </dev/cuaaa" this will report "/dev/cuaa10"
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1999-12-02 15:16:15 UTC
State Changed
From-To: open->closed

Pilot error.  The device database was out of date.  Maybe MAKEDEV should 
call dev_mkdb if it is run in /dev.