* grp.cc (parse_grp): Save empty array instead of

NULL in gr_mem if no supplementary group is given.
This commit is contained in:
Corinna Vinschen 2000-04-03 18:08:13 +00:00
parent cf11ab4e66
commit 476839eb03
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}