[Planetlab-users] getlogin() returns null
Stephen Soltesz
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.
Thank you,
Stephen.
Steve Muir wrote:
> On Fri, 23 Sep 2005, Stephen Soltesz wrote:
>
>> Hello,
>>
>> 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
> https://lists.planet-lab.org/mailman/listinfo/users
More information about the Users
mailing list