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>2006-11-29 02:15:01 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-11-29 02:15:01 +0300
commit75bb63452d845a5915add61b56fed1c7d9fa31e3 (patch)
tree1e056a3fa9b4252d0dfad29f9359e1d6aadd7a62 /winsup/cygwin/security.cc
parent902716e5992bba1fdab08550e8fa70f6cbfa838b (diff)
* security.cc (create_token): Revert erroneous change to test
subauth_token for INVAILD_HANDLE_VALUE. * syscalls.cc (seteuid32): Set create_token's subauth_token parameter back to NULL.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r--winsup/cygwin/security.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 79c3c2f50..c5a8f5ca3 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -832,8 +832,7 @@ create_token (cygsid &usersid, user_groups &new_groups, struct passwd *pw,
TOKEN_STATISTICS stats;
memcpy (source.SourceName, "Cygwin.1", 8);
source.SourceIdentifier.HighPart = 0;
- source.SourceIdentifier.LowPart = (subauth_token != INVALID_HANDLE_VALUE
- ? 0x0102 : 0x0101);
+ source.SourceIdentifier.LowPart = (subauth_token ? 0x0102 : 0x0101);
HANDLE token = INVALID_HANDLE_VALUE;
HANDLE primary_token = INVALID_HANDLE_VALUE;