OSDN Git Service

* uinfo.cc (uinfo_init): Just set user token to INVALID_HANDLE_VALUE.
authorcorinna <corinna>
Wed, 16 May 2001 21:53:18 +0000 (21:53 +0000)
committercorinna <corinna>
Wed, 16 May 2001 21:53:18 +0000 (21:53 +0000)
        Token value is already invalid at that point.

winsup/cygwin/ChangeLog
winsup/cygwin/uinfo.cc

index c779c90..d0eb58d 100644 (file)
@@ -1,3 +1,8 @@
+Wed May 16 23:27:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * uinfo.cc (uinfo_init): Just set user token to INVALID_HANDLE_VALUE.
+       Token value is already invalid at that point.
+
 Wed May 16 21:34:00 2001  Fred Yankowski <fred@ontosys.com>
 
        * net.cc (errmap): Add missing mapping from WSAEINTR to EINTR.
index a476b73..aea8fec 100644 (file)
@@ -207,7 +207,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. */
-  cygwin_set_impersonation_token (INVALID_HANDLE_VALUE);
+  cygheap->user.token = INVALID_HANDLE_VALUE;
   cygheap->user.impersonated = TRUE;
 
   /* If uid is USHRT_MAX, the process is started from a non cygwin