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>2000-11-16 12:53:26 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-11-16 12:53:26 +0300
commiteb79d041f8945b883a57c664fe9ecd5f70a52765 (patch)
tree0ec2edff0ceb2242cf38123f47f4716018fc786b
parent0dc9dc8b3aa386fb0c1f2c6fa01692cdb0368ab0 (diff)
* uinfo.cc (uinfo_init): Call `cygwin_set_impersonation_token' to
reset `cygheap->user.token' to INVALID_HANDLE_VALUE.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/uinfo.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 6c292159d..524cc51af 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov 16 10:28:00 2000 Corinna Vinschen <corinna@vinschen.de>
+
+ * uinfo.cc (uinfo_init): Call `cygwin_set_impersonation_token' to
+ reset `cygheap->user.token' to INVALID_HANDLE_VALUE.
+
Thu Nov 16 00:18:15 2000 Christopher Faylor <cgf@cygnus.com>
* exceptions.cc (interrupt_setup): Don't set signal mask here or races
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 5fb7cf955..962950e1f 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -17,6 +17,7 @@ details. */
#include <stdlib.h>
#include <wchar.h>
#include <lm.h>
+#include <sys/cygwin.h>
#include "sync.h"
#include "sigproc.h"
#include "pinfo.h"
@@ -185,7 +186,7 @@ uinfo_init ()
Setting `impersonated' to TRUE seems to be wrong but it
isn't. Impersonated is thought as "Current User and `token'
are coincident". See seteuid() for the mechanism behind that. */
- cygheap->user.token = INVALID_HANDLE_VALUE;
+ cygwin_set_impersonation_token (INVALID_HANDLE_VALUE);
cygheap->user.impersonated = TRUE;
/* If uid is USHRT_MAX, the process is started from a non cygwin