From 5a8746b73201f906c0a2d03041130c28f89eb26d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 11 Sep 2002 10:37:11 +0000 Subject: * 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. --- winsup/cygwin/security.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/security.cc') diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 43841c1f5..508ed82e2 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -61,6 +61,9 @@ cygsidlist::free_sids () { if (sids) cfree (sids); + sids = NULL; + count = maxcount = 0; + type = cygsidlist_empty; } extern "C" void -- cgit v1.2.3