From a0e1630adda19c4a0eb8644d748376b89b9aff42 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 24 Jan 2007 10:50:47 +0000 Subject: [PATCH] * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/cygheap.h | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6bc74c4fd..0c158f2c8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-01-24 Corinna Vinschen + + * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf. + 2007-01-23 Corinna Vinschen * net.cc (gai_errmap): Add EAI_OVERFLOW entry. Fix formatting. diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index f33feb546..f15d6a8ae 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -181,8 +181,7 @@ public: HANDLE token () { return current_token; } void deimpersonate () { - if (issetuid ()) - RevertToSelf (); + RevertToSelf (); } bool reimpersonate () {