getlogin() fails on glibc-2.12 and above

Mike Frysinger vapier@gentoo.org
Thu Feb 10 02:34:00 GMT 2011


On Tuesday, February 08, 2011 18:03:06 Pranav Kuber wrote:
> Compiled using this command -
> gcc -static -g getlogintest.c -o getlogintest

dont link statically and it'll work fine.  it's a known bug in glibc-2.12+.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20110210/b2d53bc3/attachment.sig>


More information about the Libc-help mailing list