r23664: Fix incorrect index - should be j not i. How did we ever
authorJeremy Allison <jra@samba.org>
Sat, 30 Jun 2007 00:22:59 +0000 (00:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:43 +0000 (12:23 -0500)
live without valgrind :-).
Jeremy.

source/smbd/posix_acls.c

index efead2dce17af8a3c69b97b463ef3b8eef14f55a..c4c4b2e393f2b3103f601988cb9824601d82c26d 100644 (file)
@@ -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);