* grp.cc (initgroups): Call groups::clear_supp to free the
supplementary group sids that may have been set by setgroups. * security.cc (cygsidlist::free_sids): Also zero the class members. * security.h (groups::clear_supp): New. Rename cygsidlist_unknown to cygsidlist_empty.
This commit is contained in:
@ -61,6 +61,9 @@ cygsidlist::free_sids ()
|
||||
{
|
||||
if (sids)
|
||||
cfree (sids);
|
||||
sids = NULL;
|
||||
count = maxcount = 0;
|
||||
type = cygsidlist_empty;
|
||||
}
|
||||
|
||||
extern "C" void
|
||||
|
Reference in New Issue
Block a user