OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Ingo Schwarze (schwarzecvs.openbsd.org)
Date: Fri Jun 05 2009 - 14:38:18 CDT


CVSROOT: /cvs
Module name: src
Changes by: schwarzecvs.openbsd.org 2009/06/05 13:38:18

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

Log message:
The yp_bind(3) return code now distinguishes "YP not active" from "an error
occurred". Based on this, decide to either bail or use the record as is.
Prevents getgrnam(3) and friends from silently skipping YP records
on system errors, for example when out of memory.
Also, calling yp_get_default_domain once is enough.
The first two switch cases are unchanged, just reindented.
ok millert