* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.

This commit is contained in:
Corinna Vinschen 2007-01-24 10:50:47 +00:00
parent c0c32634da
commit a0e1630add
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-01-24 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
2007-01-23 Corinna Vinschen <corinna@vinschen.de>
* net.cc (gai_errmap): Add EAI_OVERFLOW entry. Fix formatting.

View File

@ -181,8 +181,7 @@ public:
HANDLE token () { return current_token; }
void deimpersonate ()
{
if (issetuid ())
RevertToSelf ();
RevertToSelf ();
}
bool reimpersonate ()
{