[Planetlab-users] getlogin() returns null
smuir at CS.Princeton.EDU
Fri Sep 23 13:34:11 EDT 2005
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.
More information about the Users