summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/create_descriptor.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libcli/security/create_descriptor.c b/libcli/security/create_descriptor.c
index 92528965d1..0cac2e4a5f 100644
--- a/libcli/security/create_descriptor.c
+++ b/libcli/security/create_descriptor.c
@@ -132,7 +132,6 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
uint32_t i;
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
struct security_acl *tmp_acl = talloc_zero(mem_ctx, struct security_acl);
- struct dom_sid *co, *cg;
if (!tmp_acl) {
return NULL;
}
@@ -140,8 +139,6 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
if (!acl) {
return NULL;
}
- co = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_OWNER);
- cg = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_GROUP);
for (i=0; i < acl->num_aces; i++) {
struct security_ace *ace = &acl->aces[i];
@@ -217,7 +214,6 @@ static struct security_acl *process_user_acl(TALLOC_CTX *mem_ctx,
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
struct security_acl *tmp_acl = talloc_zero(tmp_ctx, struct security_acl);
struct security_acl *new_acl;
- struct dom_sid *co, *cg;
if (!acl)
return NULL;
@@ -228,9 +224,6 @@ static struct security_acl *process_user_acl(TALLOC_CTX *mem_ctx,
tmp_acl->revision = acl->revision;
DEBUG(6,(__location__ ": acl revision %d\n", acl->revision));
- co = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_OWNER);
- cg = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_GROUP);
-
for (i=0; i < acl->num_aces; i++){
struct security_ace *ace = &acl->aces[i];
/* Remove ID flags from user-provided ACEs