* 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.
This commit is contained in:
Corinna Vinschen
2006-11-28 23:15:01 +00:00
parent 902716e599
commit 75bb63452d
3 changed files with 9 additions and 4 deletions

View File

@@ -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;