mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r3741: FILE_ATTRIBUTE_DIRECTORY is illegal in open of a file
(This used to be commit ad7815faba
)
This commit is contained in:
parent
1824d52ff2
commit
24a40fb412
@ -809,6 +809,10 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
|
||||
flags |= O_RDONLY;
|
||||
}
|
||||
|
||||
if (io->generic.in.file_attr & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* handle creating a new file separately */
|
||||
if (!name->exists) {
|
||||
status = pvfs_create_file(pvfs, req, name, io);
|
||||
|
Loading…
Reference in New Issue
Block a user