summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-15 01:19:30 +0200
committerGünther Deschner <gd@samba.org>2009-04-21 12:40:47 +0200
commitda92e54236293460e307edd52ca7f1e20c6f23ef (patch)
tree02f8d82f65e7cb031a040a3daebc696a6f0473ba /source3/utils
parent1bb093aea9a4c5996514b10adc39a130cc6859ba (diff)
downloadsamba-da92e54236293460e307edd52ca7f1e20c6f23ef.tar.gz
samba-da92e54236293460e307edd52ca7f1e20c6f23ef.tar.bz2
samba-da92e54236293460e307edd52ca7f1e20c6f23ef.zip
s3-secdesc: use SEC_FLAG_SYSTEM_SECURITY instead of SEC_RIGHT_SYSTEM_SECURITY.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry.c4
-rw-r--r--source3/utils/net_rpc_registry.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index a504bcfd0b..d6cdd982c3 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -412,10 +412,10 @@ static int net_registry_getsd(struct net_context *c, int argc,
TALLOC_CTX *ctx = talloc_stackframe();
uint32_t access_mask = REG_KEY_READ |
SEC_FLAG_MAXIMUM_ALLOWED |
- SEC_RIGHT_SYSTEM_SECURITY;
+ SEC_FLAG_SYSTEM_SECURITY;
/*
- * net_rpc_regsitry uses SEC_RIGHT_SYSTEM_SECURITY, but access
+ * net_rpc_regsitry uses SEC_FLAG_SYSTEM_SECURITY, but access
* is denied with these perms right now...
*/
access_mask = REG_KEY_READ;
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 3076866a3a..cad605fdde 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -1148,7 +1148,7 @@ static NTSTATUS rpc_registry_getsd_internal(struct net_context *c,
struct security_descriptor sec_desc;
uint32_t access_mask = REG_KEY_READ |
SEC_FLAG_MAXIMUM_ALLOWED |
- SEC_RIGHT_SYSTEM_SECURITY;
+ SEC_FLAG_SYSTEM_SECURITY;
if (argc <1 || argc > 2 || c->display_usage) {
d_printf("Usage: net rpc registry getsd <path> <secinfo>\n");