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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
https://lists.debian.org/CABg52H=HTj0Y2rJWeW=wz7hnlgewg6qvlu89fa1nhwd0wwg...@mail.gmail.com