From: Jeremy Allison Date: Sat, 30 Jun 2007 00:22:59 +0000 (+0000) Subject: r23664: Fix incorrect index - should be j not i. How did we ever X-Git-Tag: samba-4.0.0alpha6~801^2~5500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffe11a657f2cbef87c32774153c51bbf28c49d5d;p=thirdparty%2Fsamba.git r23664: Fix incorrect index - should be j not i. How did we ever live without valgrind :-). Jeremy. (This used to be commit 9b231149c78c8bbfb70c5675cffb652705ba2cd2) --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index efead2dce17..c4c4b2e393f 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -3263,7 +3263,7 @@ static NTSTATUS append_parent_acl(files_struct *fsp, /* Finally append any inherited ACEs. */ for (j = 0; j < parent_sd->dacl->num_aces; j++) { - SEC_ACE *se = &parent_sd->dacl->aces[i]; + SEC_ACE *se = &parent_sd->dacl->aces[j]; uint32 i_flags = se->flags & (SEC_ACE_FLAG_OBJECT_INHERIT| SEC_ACE_FLAG_CONTAINER_INHERIT| SEC_ACE_FLAG_INHERIT_ONLY);