reset `cygheap->user.token' to INVALID_HANDLE_VALUE.
+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
#include <stdlib.h>
#include <wchar.h>
#include <lm.h>
+#include <sys/cygwin.h>
#include "sync.h"
#include "sigproc.h"
#include "pinfo.h"
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