mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
bc3fb2405c
commit
b8d0994627
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user