From 7c6105ec27612adc712d3afcd3a794b6b7d32d8d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Sep 2010 16:23:53 +1000 Subject: s3-util_nttoken.c Also copy the rights_mask when copying a security_token These are unused in source3/ code at the moment, but it would be unfortunate if that were to change, and this function not be updated. Andrew Bartlett Signed-off-by: Andrew Tridgell --- source3/lib/util_nttoken.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/util_nttoken.c') diff --git a/source3/lib/util_nttoken.c b/source3/lib/util_nttoken.c index 81def879318..2fd0f088ab7 100644 --- a/source3/lib/util_nttoken.c +++ b/source3/lib/util_nttoken.c @@ -58,6 +58,7 @@ struct security_token *dup_nt_token(TALLOC_CTX *mem_ctx, const struct security_t } token->privilege_mask = ptoken->privilege_mask; + token->rights_mask = ptoken->rights_mask; return token; } @@ -107,6 +108,9 @@ NTSTATUS merge_nt_token(TALLOC_CTX *mem_ctx, token->privilege_mask |= token_1->privilege_mask; token->privilege_mask |= token_2->privilege_mask; + token->rights_mask |= token_1->rights_mask; + token->rights_mask |= token_2->rights_mask; + *token_out = token; return NT_STATUS_OK; -- cgit v1.2.1