From owner-freebsd-commit Fri Sep 1 21:09:04 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23479 for freebsd-commit-outgoing; Fri, 1 Sep 1995 21:09:04 -0700 Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23464 for cvs-all-outgoing; Fri, 1 Sep 1995 21:09:02 -0700 Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23447 for cvs-lib-outgoing; Fri, 1 Sep 1995 21:09:01 -0700 Received: (from wpaul@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23434 ; Fri, 1 Sep 1995 21:08:57 -0700 Date: Fri, 1 Sep 1995 21:08:57 -0700 From: Bill Paul Message-Id: <199509020408.VAA23434@freefall.FreeBSD.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen getpwent.c getgrent.c getnetgrent.c Sender: commit-owner@FreeBSD.org Precedence: bulk wpaul 95/09/01 21:08:56 Modified: lib/libc/gen getpwent.c getgrent.c getnetgrent.c Log: getpwent.c: turn the code that checks the override caches into a seperate function to avoid duplication. Also fix getpwent() a small bit to properly handle the case where the magic NIS '+' entry appears before the end of the password file. getgrent.c: be a little more SunOS-ish. Make it look like the NIS group map is 'inserted' at the the point(s) where the magic NIS '+' entry/entries appear. getgrent: fix a file descriptor leak: remember to close the netgroup file after we determine that we're using NIS-only innetgr() lookups.