You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
Rebase against c03303838dc648b4dc9fc8d0c78b4ec51a455253.
[api-ms-win-crt-Stub_DLLs] Removed patch to forward urcrtbase *_base functions to msvcrt (fixed upstream). [kernel32-FreeUserPhysicalPages] Removed patch to add stub for kernel32.FreeUserPhysicalPages (accepted upstream). [ntdll-NtSetLdtEntries] Removed patch to add stub for NtSetLdtEntries/ZwSetLdtEntries (accepted upstream). [secur32-ANSI_NTLM_Credentials] Removed patch to fix handling of ANSI NTLM credentials (accepted upstream). [winsta-WinStationEnumerateW] Removed patch to add stub for winsta.WinStationEnumerateW (accepted upstream). [ws2_32-Sort_default_route] Removed patch to ensure default route IP addresses are returned in correct order (accepted upstream).
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
From 852441b8d71ffc4fe095a331cd8a7dcc2fdac1c2 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Thu, 10 Dec 2015 16:40:01 +0100
|
||||
Subject: server: token_duplicate should not reference the original token,
|
||||
which will get destroyed on process exit.
|
||||
|
||||
---
|
||||
server/token.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/server/token.c b/server/token.c
|
||||
index 001261d..9edfbf0 100644
|
||||
--- a/server/token.c
|
||||
+++ b/server/token.c
|
||||
@@ -568,6 +568,7 @@ struct token *token_duplicate( struct token *src_token, unsigned primary,
|
||||
if (!token) return token;
|
||||
|
||||
/* copy groups */
|
||||
+ token->primary_group = NULL;
|
||||
LIST_FOR_EACH_ENTRY( group, &src_token->groups, struct group, entry )
|
||||
{
|
||||
size_t size = FIELD_OFFSET( struct group, sid.SubAuthority[group->sid.SubAuthorityCount] );
|
||||
@@ -579,8 +580,9 @@ struct token *token_duplicate( struct token *src_token, unsigned primary,
|
||||
}
|
||||
memcpy( newgroup, group, size );
|
||||
list_add_tail( &token->groups, &newgroup->entry );
|
||||
+ if (src_token->primary_group == &group->sid)
|
||||
+ token->primary_group = &newgroup->sid;
|
||||
}
|
||||
- token->primary_group = src_token->primary_group;
|
||||
assert( token->primary_group );
|
||||
|
||||
/* copy privileges */
|
||||
--
|
||||
2.6.2
|
||||
|
Reference in New Issue
Block a user