Subject: Re: login on com port and port ownership
To: None <>
From: Mike Long <>
List: netbsd-bugs
Date: 12/29/1993 20:41:38
>From: (Brett Lymn)
>Date: Thu, 30 Dec 1993 10:34:38 +1030 (CST)
>According to Mauro Franzoni  29-Dec-1993 1439:
>>BTW, it seems that, although /dev/com1 is just a sym-link and /dev/tty01 the
>>real special file, some part of the system still references /dev/com1 (and
>>other components do refer to /dev/tty00).
>Me too.  Also on my NetBSD 0.9 system I have found that I need to put
>com2 instead of tty02 in the /etc/ttys file otherwise the terminal
>type does not get set correctly.  It seems that the function ttyname
>returns the /dev/comX type name which in turn is because the
>database /var/run/dev.db has this name in it, the end result is unless
>you put comX in ttys then login will fail to find the correct entry
>and will set the TERM variable to some random string.

I find that all such problems are easily solved with:

rm /dev/com?

Make sure that /etc/ttys doesn't refer to any /dev/com devices, and
reboot.  End of problem.
Mike Long                               
VLSI Design Engineer                              voice: (617)461-4030
Analog Devices, SPD Div.                            FAX: (617)461-3010
Norwood, MA 02062                            *this = !opinion(Analog);