[comp.sys.sgi] ftpd writes incorrect /etc/utmp

zrzr0111@helpdesk.rus.uni-stuttgart.de (Kurt Jaeger aka PI) (01/04/91)

Hi !

This is part of a "cat -v" of our /etc/utmp, while user zrzn0111 is
ftp'ing something.

^@^@^@E2^@^G^@^@^@^@'M-^CUM-^Qzrzn0111ftp0ruspool20.r^@G^E^@^G^@^@^@^@'M-^Co
                                         ^ LOOK here !

@^@^@^@F$^@^G^@^@^@^@'M-^ClM-Azrzu0111q4^@^@ttyq4^@^@^@^@^@^@^@FM-
                                        ^ and here !

Ftpd, when initiated by a incoming ftp-session, writes a ftp-entry
in /etc/utmp. But the tty-entry is not terminated by a null-byte, its a
char 0 :)

> finger: /dev/ruspool2: No such file or directory

Finger then wants to read the /etc/utmp und skips the tty-entry cause of
the missing null-byte. Then it tries to make some status-query on the
wrong device.

Its a bug, isnt it ?

		So long, PI

-- 
PI at the User Help Desk Comp.Center U of Stuttgart, FRG       29 Years to go ! 
Phone: +49 711 685-4828                (aka Kurt Jaeger)
SMTP: pi@helpdesk.rus.uni-stuttgart.de (yeah, really 8-)
X.400: pi@rus.uni-stuttgart.de  zrzr0111@ds0rus54.bitnet