[15511] in Athena Bugs
sun4 8.0L: who on solaris on dialup
daemon@ATHENA.MIT.EDU (Bob Hyers)
Wed Sep 17 20:04:48 1997
To: bugs@MIT.EDU
Date: Wed, 17 Sep 1997 20:04:43 EDT
From: Bob Hyers <rwhyers@MIT.EDU>
System name: mint-square
Type and version: SPARC/5 8.0L (1 update(s) to same version)
Display type: cgthree
What were you trying to do?
Use 'who' or C functions like 'getutxent' to find the
hostname of the machine I'm telnetting FROM.
What's wrong:
This field seems to be missing form utmpx, but not from wtmpx.
Also missing from the output of 'who' on the dialups.
What should have happened:
'who' should return something like this (from a non-athena machine
running solaris 2.5):
hyers pts/2 Sep 17 20:01 (OZYMANDIAS.MIT.EDU)
instead of something like this (from x.dialup):
rwhyers pts/35 Sep 17 18:19
A call to 'getutxent' which returns a field 'ut_type'
USER_PROCESS should have something non-null in the field 'ut_host'
when the entry refers to a telnet connection. This is true when
reading wtmpx, but not utmpx.
Please describe any relevant documentation references:
man pages: who, utmp, utmpx, getutxent
Thanks for looking.
Bob