diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-05-16 21:53:18 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-05-16 21:53:18 +0000 |
commit | 1cec72414bf4e31e0fea67f59102fe3ab4f3822c (patch) | |
tree | 017ea092ed842e8eba7f08200b6349df49fe3ed5 | |
parent | 56921232f6da071f0386eff383be349863541f54 (diff) | |
download | cygnal-1cec72414bf4e31e0fea67f59102fe3ab4f3822c.tar.gz cygnal-1cec72414bf4e31e0fea67f59102fe3ab4f3822c.tar.bz2 cygnal-1cec72414bf4e31e0fea67f59102fe3ab4f3822c.zip |
* uinfo.cc (uinfo_init): Just set user token to INVALID_HANDLE_VALUE.
Token value is already invalid at that point.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c779c9080..d0eb58d6b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index a476b73f0..aea8fece4 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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 |