From: Stefan Metzmacher Date: Sun, 2 Dec 2012 16:44:47 +0000 (+0100) Subject: Revert "TODO breaks tests libcli/security: fix the CREATOR_OWNER order in calculate_i... X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=b3cf4a6683ca949486f4a9da1a8ffc4ad373529b Revert "TODO breaks tests libcli/security: fix the CREATOR_OWNER order in calculate_inherited_from_parent()" This reverts commit aa304704813fc80980d4dda2ede72acf33944a4c. --- diff --git a/libcli/security/create_descriptor.c b/libcli/security/create_descriptor.c index aab8fc5fcb92..23e7e9ba60b0 100644 --- a/libcli/security/create_descriptor.c +++ b/libcli/security/create_descriptor.c @@ -223,10 +223,10 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx, } tmp_acl->aces[tmp_acl->num_aces] = *ace; desc_expand_generic(tmp_ctx, - &tmp_acl->aces[tmp_acl->num_aces-1], + &tmp_acl->aces[tmp_acl->num_aces], owner, group); - tmp_acl->aces[tmp_acl->num_aces-1].flags = SEC_ACE_FLAG_INHERITED_ACE; + tmp_acl->aces[tmp_acl->num_aces].flags = SEC_ACE_FLAG_INHERITED_ACE; tmp_acl->num_aces++; } }