diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-24 17:30:18 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-24 17:30:18 +0000 |
commit | be71be8e18a85fc275cc7193029124d79b8a077e (patch) | |
tree | 7d92fe8ea8957b7ed5bb45abe947c950ca5bb7c4 | |
parent | c6a6b5a3ac30a43a47aa86a36ef4feac6c34c0ce (diff) | |
download | cygnal-be71be8e18a85fc275cc7193029124d79b8a077e.tar.gz cygnal-be71be8e18a85fc275cc7193029124d79b8a077e.tar.bz2 cygnal-be71be8e18a85fc275cc7193029124d79b8a077e.zip |
* sec_auth.cc (get_full_privileged_inheritable_token): Fix dumb typo
when checking linked token for being a primary token.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sec_auth.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3819052d2..2dc43cfd3 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-02-24 Corinna Vinschen <corinna@vinschen.de> + + * sec_auth.cc (get_full_privileged_inheritable_token): Fix dumb typo + when checking linked token for being a primary token. + 2010-02-24 Christopher Faylor <me+cygwin@cgf.cx> * dlfcn.cc (dlopen): Make sure exception handler is really loaded after diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc index 940483b4a..8af0b9837 100644 --- a/winsup/cygwin/sec_auth.cc +++ b/winsup/cygwin/sec_auth.cc @@ -61,8 +61,8 @@ get_full_privileged_inheritable_token (HANDLE token) /* At this point we don't know if the user actually had TCB privileges. Check if the linked token is a primary token. If not, just return the original token. */ - if (GetTokenInformation (token, TokenType, (PVOID) &type, - sizeof type, &size) + if (GetTokenInformation (linked.LinkedToken, TokenType, + (PVOID) &type, sizeof type, &size) && type != TokenPrimary) debug_printf ("Linked Token is not a primary token!"); else |