grp.cc

Chris Faylor cgf@cygnus.com
Mon Apr 3 10:10:00 GMT 2000


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


More information about the Cygwin-patches mailing list