CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2014/03/12 04:54:36

Modified files:
        lib/libc/gen   : getpwent.c getgrent.c 

Log message:
Make sure that setgrent(), endgrent(), and endpwent() do not clobber
errno; they might do so on open() and close() failures, but by POSIX,
they are not supposed to fail.  Note that ignoring failures inside
setgrent() does not matter, the following getgrent() is bound to
fail the same way again, anyway.  If you insist on detecting open()
failure, use setgroupent(), even though that is less portable.
While here, remove two pointless (void) casts.
ok millert@ jca@

Reply via email to