[comp.sys.sgi] getlogin

moraes@cs.toronto.edu (Mark Moraes) (02/25/90)

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.