r4411: when checking for create permissions, we need to check the parent, not the...
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Dec 2004 06:51:13 +0000 (06:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:45 +0000 (13:07 -0500)
(This used to be commit 30b4c20b1c9aea94dd2a0611b58860797d244e5a)

source4/ntvfs/posix/pvfs_acl.c

index a5cd9ebd79db30b8c358f04c37a48d46dc2f1239..6741fb851d27e56f2165b6a803a72f4ce3090d5b 100644 (file)
@@ -392,7 +392,7 @@ NTSTATUS pvfs_access_check_create(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);
 }