Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
25b0a498
Commit
25b0a498
authored
Dec 21, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Dec 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix assignment of primary_group in token_duplicate.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe2f86e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
token.c
server/token.c
+3
-1
No files found.
server/token.c
View file @
25b0a498
...
...
@@ -559,6 +559,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
]
);
...
...
@@ -570,8 +571,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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment