summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-07 05:24:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:31 -0500
commitc012669b5538dfbc66697da07b5295431a35ac13 (patch)
tree6a443673025f38f78848d7561d17b1f658a221ba
parenteccbbd70b0d3e43d2499e601cfbea33939b29164 (diff)
downloadsamba-c012669b5538dfbc66697da07b5295431a35ac13.tar.gz
samba-c012669b5538dfbc66697da07b5295431a35ac13.tar.bz2
samba-c012669b5538dfbc66697da07b5295431a35ac13.zip
r4595: on create check access against parent not child ...
(This used to be commit 5a1a17d3fc771b1e1c61297067f38c87901891d3)
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index 5d8225f8ec..590c9c18b5 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -443,7 +443,7 @@ NTSTATUS pvfs_access_check_create(struct pvfs_state *pvfs,
}
if (! ((*access_mask) & SEC_DIR_ADD_FILE)) {
- return pvfs_access_check_simple(pvfs, req, name, SEC_DIR_ADD_FILE);
+ return pvfs_access_check_simple(pvfs, req, parent, SEC_DIR_ADD_FILE);
}
return status;
@@ -464,7 +464,7 @@ NTSTATUS pvfs_access_check_create_nomask(struct pvfs_state *pvfs,
return status;
}
- return pvfs_access_check_simple(pvfs, req, name, SEC_DIR_ADD_FILE);
+ return pvfs_access_check_simple(pvfs, req, parent, SEC_DIR_ADD_FILE);
}