summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/security/access_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/security/access_check.c b/source4/libcli/security/access_check.c
index f0a46cc23d..ea63369303 100644
--- a/source4/libcli/security/access_check.c
+++ b/source4/libcli/security/access_check.c
@@ -92,7 +92,7 @@ NTSTATUS sec_access_check(const struct security_descriptor *sd,
if (security_token_has_privilege(token, SEC_PRIV_SECURITY)) {
bits_remaining &= ~SEC_FLAG_SYSTEM_SECURITY;
} else {
- return NT_STATUS_ACCESS_DENIED;
+ return NT_STATUS_PRIVILEGE_NOT_HELD;
}
}