Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!ira.uka.de!rusux1!helpdesk.rus.uni-stuttgart.de!zrzr0111 From: zrzr0111@helpdesk.rus.uni-stuttgart.de (Kurt Jaeger aka PI) Newsgroups: comp.sys.sgi Subject: ftpd writes incorrect /etc/utmp (3.3.1) Keywords: ftpd, bug, finger Message-ID: <393@rusux1.rus.uni-stuttgart.de> Date: 3 Jan 91 16:23:15 GMT Sender: zrf80385@rusux1.rus.uni-stuttgart.de Organization: User Helpdesk Comp. Cent. (RUS) U of Stuttgart, FRG Lines: 30 Originator: zrzr0111@helpdesk.rus.uni-stuttgart.de 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