Package: manpages-dev
Version: 3.07-1
Severity: minor

Hello!

This one just bit me and even though it might be considered a bug in glibc,
it would still be nice to have the problem documented.

It would be very nice if you could update the manpage with the fact that
getpwnam_r sometimes returns 0 even on failures and the return code alone
should not be trusted!


ie. getpwnam_r on non-existent users returns 0 and the the result pointer
pwbufp is NULL, so you need to check both the return code *and* make sure
the result is not a NULL-pointer.

See https://bugzilla.novell.com/show_bug.cgi?id=305053


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (300, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages manpages-dev depends on:
ii  manpages                      3.07-1     Manual pages about using a GNU/Lin

manpages-dev recommends no packages.

Versions of packages manpages-dev suggests:
ii  man-db [man-browser]          2.5.2-3    on-line manual pager

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to