Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!neat.cs.toronto.edu!moraes From: moraes@cs.toronto.edu (Mark Moraes) Newsgroups: comp.sys.sgi Subject: getlogin()? Message-ID: <90Feb25.013913est.447@smoke.cs.toronto.edu> Date: 25 Feb 90 06:40:25 GMT Lines: 10 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.