Package: glibc
Version: 2.19-5
Severity: normal
Dear maintainers,
since glibc 2.19 getpwuid() fails in a statically linked program (pw == NULL):
#include unistd.h
#include sys/types.h
#include stdio.h
#include pwd.h
int main()
{
int uid;
struct passwd *pw;
uid=getuid();
printf(UID=%d\n, uid);
pw = getpwuid(uid);
printf(Done.\n);
if (pw)
printf(Name=%s\n, pw-pw_name);
else
perror(Name=n/a (pw == NULL));
return 0;
}
This blocks 576238 [1].
Thanks,
Andrey
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576238
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org