[Planetlab-users] getlogin() returns null
soltesz at CS.Princeton.EDU
Fri Sep 23 13:47:08 EDT 2005
errno: ENOENT, There was no corresponding entry in /var/run/utmp.
/var/run/utmp is an empty file. :-)
This wasn't my code using getlogin(). I've worked around it. So, just
FYI, if this is a concern for other.
Steve Muir wrote:
> On Fri, 23 Sep 2005, Stephen Soltesz wrote:
>> Is getlogin() known not to work within planetlab/vserver?
>> When I run it within a vserver, it returns NULL. Is this a
>> configuration error on my part?
> what's the value of errno? have you tried running strace to see what
> getlogin is doing and at what point it fails? (you can install strace
> using yum if necessary) my best guess right now is that this is broken
> by the way /dev/pts is configured inside a vserver, which unfortunately
> you probably can't do much about as a user.
> Users mailing list: Users at lists.planet-lab.org
More information about the Users