summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-15 01:16:41 +0200
committerGünther Deschner <gd@samba.org>2009-04-21 12:40:47 +0200
commit1bb093aea9a4c5996514b10adc39a130cc6859ba (patch)
treef2e66680d3a3122de9ba0ec2e48ac23cce28e139 /source3/utils
parentb5bec1a6d73f5939b306e157937d027a7286163c (diff)
downloadsamba-1bb093aea9a4c5996514b10adc39a130cc6859ba.tar.gz
samba-1bb093aea9a4c5996514b10adc39a130cc6859ba.tar.bz2
samba-1bb093aea9a4c5996514b10adc39a130cc6859ba.zip
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry.c2
-rw-r--r--source3/utils/net_rpc_registry.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index e2f410b9ac..a504bcfd0b 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 203a0cc9e3..3076866a3a 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) {