summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-30 00:22:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:43 -0500
commitffe11a657f2cbef87c32774153c51bbf28c49d5d (patch)
tree1cecdde07ed9c1ab7983d81dec2165e4a040c16f /source3
parent07d2a3a89322a04fcc164c2c827b7f68f7369c29 (diff)
downloadsamba-ffe11a657f2cbef87c32774153c51bbf28c49d5d.tar.gz
samba-ffe11a657f2cbef87c32774153c51bbf28c49d5d.tar.bz2
samba-ffe11a657f2cbef87c32774153c51bbf28c49d5d.zip
r23664: Fix incorrect index - should be j not i. How did we ever
live without valgrind :-). Jeremy. (This used to be commit 9b231149c78c8bbfb70c5675cffb652705ba2cd2)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/posix_acls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index efead2dce1..c4c4b2e393 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);