From Meyser@xenet.de Wed Dec  1 08:20:39 1999
Return-Path: <Meyser@xenet.de>
Received: from xenet.harz.de. (xenet.harz.de [193.159.181.111])
	by hub.freebsd.org (Postfix) with ESMTP id D054714D79
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Dec 1999 08:20:24 -0800 (PST)
	(envelope-from Meyser@xenet.de)
Received: (from matthias@localhost)
	by xenet.harz.de. (8.9.3/8.9.3) id RAA08171;
	Wed, 1 Dec 1999 17:18:21 +0100 (CET)
	(envelope-from matthias)
Message-Id: <199912011618.RAA08171@xenet.harz.de.>
Date: Wed, 1 Dec 1999 17:18:21 +0100 (CET)
From: Matthias Meyser <Meyser@xenet.de>
Reply-To: Meyser@xenet.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: Bug in "tty"
X-Send-Pr-Version: 3.2

>Number:         15208
>Category:       bin
>Synopsis:       bug in tty (the program :)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  1 08:30:02 PST 1999
>Closed-Date:    Thu Dec 2 07:16:15 PST 1999
>Last-Modified:  Thu Dec  2 07:19:36 PST 1999
>Originator:     Matthias Meyser
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
XeNET GmbH, Clausthal-Zellerfeld
>Environment:

	System with 11 and more serial ports

>Description:

	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"


>Fix:
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Thu Dec 2 07:16:15 PST 1999 
State-Changed-Why:  
Pilot error.  The device database was out of date.  Maybe MAKEDEV should 
call dev_mkdb if it is run in /dev. 
>Unformatted:
