Re: lib/libc/gen/getpwent.c diff

2011-09-04 Thread Philip Guenther
On Thu, Aug 18, 2011 at 3:36 PM, Tim van der Molen wrote: > When run without root privileges, getpwent(), getpwnam() and friends > always set errno, even if they succeed. Because of this, it is > impossible to distinguish between true errors (for which errno should be > set) and conditions like "e

Re: lib/libc/gen/getpwent.c diff

2011-09-04 Thread Tim van der Molen
Resending. On Fri, 19 Aug 2011 00:36:51 +0200, Tim van der Molen wrote: > When run without root privileges, getpwent(), getpwnam() and friends > always set errno, even if they succeed. Because of this, it is > impossible to distinguish between true errors (for which errno should be > set) and cond

lib/libc/gen/getpwent.c diff

2011-08-18 Thread Tim van der Molen
When run without root privileges, getpwent(), getpwnam() and friends always set errno, even if they succeed. Because of this, it is impossible to distinguish between true errors (for which errno should be set) and conditions like "end of database" and "no such user" (for which errno should not be s