Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 1995 10:14:52 -0700
From:      Bill Paul <wpaul>
To:        CVS-commiters, cvs-lib
Subject:   cvs commit: src/lib/libc/gen getgrent.c
Message-ID:  <199504291714.KAA29241@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
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.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504291714.KAA29241>