This is the mail archive of the
cygwin-patches@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: grp.cc
- To: Corinna Vinschen <corinna at vinschen dot de>
- Subject: Re: grp.cc
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Mon, 3 Apr 2000 13:10:35 -0400
- Cc: cygpatch <cygwin-patches at sourceware dot cygnus dot com>
- References: <38E8CEF0.2BE9EA4F@vinschen.de>
Sure. Go ahead.
cgf
On Mon, Apr 03, 2000 at 07:03:44PM +0200, Corinna Vinschen wrote:
>We already talked about that:
>
> * grp.cc (parse_grp): Save empty array instead of
> NULL in gr_mem if no supplementary group is given.
>
>I would like to commit this patch:
>
>Index: grp.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/grp.cc,v
>retrieving revision 1.2
>diff -u -p -r1.2 grp.cc
>--- grp.cc 2000/02/21 05:20:37 1.2
>+++ grp.cc 2000/04/03 16:55:30
>@@ -92,7 +92,7 @@ parse_grp (struct group &grp, const char
> grp.gr_mem = namearray;
> }
> else
>- grp.gr_mem = NULL;
>+ grp.gr_mem = (char **) calloc (1, sizeof (char *));
> return 1;
> }
> }
>
>Corinna