* 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:
Corinna Vinschen
2002-09-11 10:37:11 +00:00
parent 22f8000733
commit 5a8746b732
4 changed files with 21 additions and 3 deletions

View File

@ -61,6 +61,9 @@ cygsidlist::free_sids ()
{
if (sids)
cfree (sids);
sids = NULL;
count = maxcount = 0;
type = cygsidlist_empty;
}
extern "C" void