summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-15 01:16:41 +0200
committerKarolin Seeger <kseeger@samba.org>2009-04-28 09:11:12 +0200
commite92e7afaf765257ce9fb26940d6df1102439873a (patch)
tree2a4e42df53d881c771115c58fc2944b69d392c1d
parent2f97df10048314763c44ee701dff5654981159bd (diff)
downloadsamba-e92e7afaf765257ce9fb26940d6df1102439873a.tar.gz
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED.
Guenther (cherry picked from commit 1bb093aea9a4c5996514b10adc39a130cc6859ba) (cherry picked from commit 2f691302b3fe6b5b710b228ae149e0807ef5d5dc)
-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 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) {