OSDN Git Service

* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
authorcorinna <corinna>
Wed, 24 Jan 2007 10:50:45 +0000 (10:50 +0000)
committercorinna <corinna>
Wed, 24 Jan 2007 10:50:45 +0000 (10:50 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/cygheap.h

index 6bc74c4..0c158f2 100644 (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.
index f33feb5..f15d6a8 100644 (file)
@@ -181,8 +181,7 @@ public:
   HANDLE token () { return current_token; }
   void deimpersonate ()
   {
-    if (issetuid ())
-      RevertToSelf ();
+    RevertToSelf ();
   }
   bool reimpersonate ()
   {