getlogin()?
Mark Moraes
moraes at cs.toronto.edu
Sun Feb 25 17:40:25 AEST 1990
Why does getlogin() on Irix3.2 return either "rlogin" or some random
user name if the pty you're running on does not have a utmp entry?
(Sometimes, I run an xterm that isn't setuid root because it's
experimental, or do not advertise a utmp in all my windows so system
messages don't beep me all over the place)
It would seem a better solution for getlogin() to return NULL so that
programs can then follow the manual page and call getpwuid().
Mark.
More information about the Comp.sys.sgi
mailing list