Bug#754813: since 2.19: getpwuid() fails in statically linked programs

2015-10-21 Thread Andrey Gursky
> This is a regression introduced in 2.19 by the following commit:

Aurelien,
thanks for the information.

Regards,
Andrey


P.S. I never received a copy of your email answer.



Bug#754813: since 2.19: getpwuid() fails in statically linked programs

2014-07-14 Thread Andrey Gursky
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