1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

rpc_server: Fix CID 1273433 Unused value

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar  4 23:29:01 CET 2015 on sn-devel-104
This commit is contained in:
Volker Lendecke 2015-03-04 11:08:36 +01:00 committed by Jeremy Allison
parent 40a317f092
commit 15a702accf

View File

@ -134,7 +134,7 @@ void map_max_allowed_access(const struct security_token *nt_token,
*pacc_requested &= ~MAXIMUM_ALLOWED_ACCESS;
/* At least try for generic read|execute - Everyone gets that. */
*pacc_requested = GENERIC_READ_ACCESS|GENERIC_EXECUTE_ACCESS;
*pacc_requested |= GENERIC_READ_ACCESS|GENERIC_EXECUTE_ACCESS;
/* root gets anything. */
if (unix_token->uid == sec_initial_uid()) {