This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: who and utmp
On Mon, Aug 16, 1999 at 07:18:34AM +0200, Andreas Jaeger elucidated:
> That would be a problem with xterm/login etc not calling the correct
> cleanup functions.
Ok. Course it is interesting that 'w' is smarter than 'who'.
> That's the result from calling getutent. Read the glibc doku about utmpd.
>
Well, that's the point, they don't use the getutent() functions. They just
do fopen("/var/run/utmp", "r") or similar. I read the doc, but wierder
stuff is going on. It would appear that it isn't necessary to use
getutent(). Is there any chance utmpd somehow redirects an open on
/var/run/utmp? Cause it still looks like that is what is going on.
Dale