From: Günther Deschner Date: Tue, 14 Apr 2009 23:16:41 +0000 (+0200) Subject: s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED. X-Git-Tag: tdb-1.1.5~922^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb093aea9a4c5996514b10adc39a130cc6859ba;p=thirdparty%2Fsamba.git s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED. Guenther --- diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index e2f410b9ac3..a504bcfd0b6 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -411,7 +411,7 @@ static int net_registry_getsd(struct net_context *c, int argc, struct security_descriptor *secdesc = NULL; TALLOC_CTX *ctx = talloc_stackframe(); uint32_t access_mask = REG_KEY_READ | - SEC_RIGHT_MAXIMUM_ALLOWED | + SEC_FLAG_MAXIMUM_ALLOWED | SEC_RIGHT_SYSTEM_SECURITY; /* diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index 203a0cc9e3e..3076866a3a9 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1147,7 +1147,7 @@ static NTSTATUS rpc_registry_getsd_internal(struct net_context *c, DATA_BLOB blob; struct security_descriptor sec_desc; uint32_t access_mask = REG_KEY_READ | - SEC_RIGHT_MAXIMUM_ALLOWED | + SEC_FLAG_MAXIMUM_ALLOWED | SEC_RIGHT_SYSTEM_SECURITY; if (argc <1 || argc > 2 || c->display_usage) {