From owner-cvs-lib Sat Apr 29 10:15:07 1995 Return-Path: cvs-lib-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA29259 for cvs-lib-outgoing; Sat, 29 Apr 1995 10:15:07 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA29241 ; Sat, 29 Apr 1995 10:14:52 -0700 Date: Sat, 29 Apr 1995 10:14:52 -0700 From: Bill Paul Message-Id: <199504291714.KAA29241@freefall.cdrom.com> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen getgrent.c Sender: cvs-lib-owner@freebsd.org Precedence: bulk wpaul 95/04/29 10:14:51 Modified: lib/libc/gen getgrent.c Log: Small fix for the following problems: - If you take the wheel entry out of /etc/group and turn on NIS, the '+:*::' line is incorrectly flagged as the entry for wheel (the empty gid section is translated to 0), hence getgrgid() returns '+' as the name of the group instead of 'wheel.' - Using just '+:' as the 'turn on NIS' switch in /etc/group makes getgrgid() dump core because of a null pointer dereference. (Last time I was in here, I foolishly assumed that fixing the core dump problems with getgrnam() and getgrent() would fix getgrgid() too. Silly me.)