Subject: bin/15594: problems with the new /dev/ttypX entries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti@netbsd.org>
List: netbsd-bugs
Date: 02/13/2002 07:55:04
>Number: 15594
>Category: bin
>Synopsis: problems with the new /dev/ttypX entries
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 12 22:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Martti Kuparinen
>Release: NetBSD 1.5ZA
>Organization:
>Environment:
>Description:
I have a fresh installation of 1.5ZA (make release from last week)
which I upgraded yesterday (build.sh, kernel, etcupdate, MAKEDEV).
It seems like the new /dev/ttypX device nodes are not working with
certain commands like w, who and last, i.e. either the {u,w}tmp
records are not updated or the utilities don't work correctly.
Here's a short capture of the session:
localhost:~> ssh 10.0.0.254
NetBSD 1.5ZA (FW) #0: Tue Feb 12 19:06:47 EET 2002
Welcome to NetBSD!
Terminal type is xterm.
7:00AM 0 users, load averages: 0.85, 0.21, 0.07
fw:~> who
fw:~>
fw:~> w
7:02AM up 3 mins, 0 users, load averages: 0.28, 0.19, 0.09
USER TTY FROM LOGIN@ IDLE WHAT
fw:~>
fw:~> ps axw | grep sshd:
284 ?? S 0:00.55 sshd: martti@ttypg
fw:~>
fw:~> uname -a
NetBSD fw 1.5ZA NetBSD 1.5ZA (FW) #0: Tue Feb 12 19:06:47 EET 2002 root@fw:/usr/src/sys/arch/i386/compile/FW i386
fw:~>
fw:~> ls -l `which w`
-r-xr-xr-x 2 root wheel 11984 Feb 12 23:32 /usr/bin/w
And here's the partitial directory listing from /dev:
crw-rw-rw- 1 root wheel 5, 14 Feb 11 19:02 ttype
crw-rw-rw- 1 root wheel 5, 15 Feb 11 19:02 ttypf
crw--w---- 1 martti tty 5, 256 Feb 13 07:02 ttypg
crw-rw-rw- 1 root wheel 5, 257 Feb 11 19:02 ttyph
crw-rw-rw- 1 root wheel 5, 258 Feb 11 19:02 ttypi
crw-rw-rw- 1 root wheel 5, 259 Feb 11 19:02 ttypj
>How-To-Repeat:
>Fix:
I haven't investigated this yet.
>Release-Note:
>Audit-Trail:
>Unformatted: