r4411: when checking for create permissions, we need to check the parent, not the...
[samba.git] / source / 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 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);
 }
 
 
 }