From a0e1630adda19c4a0eb8644d748376b89b9aff42 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 24 Jan 2007 10:50:47 +0000 Subject: * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf. --- winsup/cygwin/cygheap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/cygheap.h') 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 () { -- cgit v1.2.3