Date: Mon, 13 Oct 1997 10:09:17 -0700 (PDT) From: Bill Paul <wpaul@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen getnetgrent.c Message-ID: <199710131709.KAA19745@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 1997/10/13 10:09:17 PDT Modified files: lib/libc/gen getnetgrent.c Log: Improve the innetgr() NIS+ compat kludge. We should only fail over to the 'slow' lookup if we get a YPERR_MAP (no such map in server's domain) error instead of failing over on any error. In the latter case, if the 'fast' search fails legitimately (i.e. the user or host really isn't a member of the specified netgroup) then we end up doing the 'slow' search and failing all over again. The result is still correct, but cycles are consumed for no good reason. Also removed the #ifdef CHARITABLE since the compat kludge is no longer optional. Revision Changes Path 1.22 +25 -18 src/lib/libc/gen/getnetgrent.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710131709.KAA19745>