diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-04-03 22:08:13 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-04-03 22:08:13 +0400 |
commit | 476839eb03747d00f6e9397357182f8cf35865b1 (patch) | |
tree | beb8d1b7e1913a938c445dc96891b4af4b98a4d0 /winsup | |
parent | cf11ab4e66d942505465b482fa3a2061efd25200 (diff) |
* grp.cc (parse_grp): Save empty array instead of
NULL in gr_mem if no supplementary group is given.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/grp.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index dcd493c20..21b608505 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 03 13:58:00 2000 Corinna Vinschen <corinna@vinschen.de> + + * grp.cc (parse_grp): Save empty array instead of + NULL in gr_mem if no supplementary group is given. + Sun Apr 02 16:02:00 2000 Corinna Vinschen <corinna@vinschen.de> * syscalls.cc (chown_worker): Use previous uid/gid if diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index d8a0783cf..2009275c7 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -92,7 +92,7 @@ parse_grp (struct group &grp, const char *line) grp.gr_mem = namearray; } else - grp.gr_mem = NULL; + grp.gr_mem = (char **) calloc (1, sizeof (char *)); return 1; } } |