summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-22 16:34:36 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-22 17:39:11 +0100
commitb8d0994627ef237fdc92bebd9c9a26f9d62764bc (patch)
tree122ff96b046ccaef32cee7c4374be8b951560063 /source4
parentbc3fb2405ca1454a7b8da226781f9df13e1070cf (diff)
downloadsamba-b8d0994627ef237fdc92bebd9c9a26f9d62764bc.tar.gz
samba-b8d0994627ef237fdc92bebd9c9a26f9d62764bc.tar.bz2
samba-b8d0994627ef237fdc92bebd9c9a26f9d62764bc.zip
s4:ntvfs/posix: name->dos.attrib isn't initialized in pvfs_access_check_create()
That's why we have the 'container' parameter to indicate the caller wants to create a directory. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 22 17:39:11 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index addd6808ca..67b544d4de 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -698,7 +698,7 @@ NTSTATUS pvfs_access_check_create(struct pvfs_state *pvfs,
status = pvfs_resolve_parent(pvfs, req, name, &parent);
NT_STATUS_NOT_OK_RETURN(status);
- if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
+ if (container) {
parent_mask = SEC_DIR_ADD_SUBDIR;
} else {
parent_mask = SEC_DIR_ADD_FILE;