Subject: Re: tty00 vs. ttyZ0 in ttys
To: None <port-macppc@netbsd.org>
From: Allen Briggs <briggs@netbsd.org>
List: port-macppc
Date: 01/21/2005 23:22:22
On Fri, Jan 21, 2005 at 10:49:41PM -0500, Chris Tribo wrote:
> NetBSD/macppc (StarFire) (tty00)
> 
> login: root
> root login refused on this terminal.
> Jan 21 22:42:46 StarFire login: LOGIN root REFUSED ON TTY ttyZ0

Ah, right.  It's actually login(1) that's giving you the error, not
getty(8).  login is getting the tty name from ttyname(3) on it's
standard input file descriptor, which will try to map back to the
actual device node that was opened (using the device database if
possible, or by reading through /dev if the device database is not
present or doesn't have the device in it).

See src/usr.bin/login/login.c and src/lib/libc/gen/ttyname.c if
you're curious.

-allen

-- 
                  Use NetBSD!  http://www.netbsd.org/