delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/12/10:00:11

From: cgf AT bbc DOT com (Christopher Faylor)
Subject: Re: getgrnam fix?
12 Feb 1998 10:00:11 -0800 :
Message-ID: <Eo9y82.3n5.cygnus.cygwin32.developers@bbc.com>
References: <199802120012 DOT QAA00464 AT rtl DOT cygnus DOT com>
Reply-To: cygwin32-developers AT cygnus DOT com
To: cygwin32-developers AT cygnus DOT com

In article <199802120012 DOT QAA00464 AT rtl DOT cygnus DOT com>,
Geoffrey Noer  <cygwin32-developers AT cygnus DOT com> wrote:
>Hello,
>
>Some people have complained about the fact that getgrnam does not
>return NULL when there is an /etc/group that doesn't contain the right
>group ID.
>
>The patch that follows adds the default group line into the
>group file in memory when /etc/group isn't found.  getgrnam will then
>return NULL if the group file in memory doesn't contain the requested
>group.
>
>Will this cause problems I'm not thinking of?  I don't think so but...

It looks right to me.  Are there similar issues with getpwnam?
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019