From: cgf AT bbc DOT com (Christopher Faylor) Subject: Re: getgrnam fix? 12 Feb 1998 10:00:11 -0800 Message-ID: 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 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."