Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-01-24 13:50:47 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-01-24 13:50:47 +0300
commita0e1630adda19c4a0eb8644d748376b89b9aff42 (patch)
tree96085b92114cfab9225ae29f5e05b079f444a9eb /winsup/cygwin/cygheap.h
parentc0c32634da05b48f57ec8209b5efd8f859f2b894 (diff)
* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h3
1 files changed, 1 insertions, 2 deletions
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 ()
{