1
0
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:
Andrew Tridgell 2004-11-14 23:37:02 +00:00 committed by Gerald (Jerry) Carter
parent 1824d52ff2
commit 24a40fb412

View File

@ -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);