git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1824d52
)
r3741: FILE_ATTRIBUTE_DIRECTORY is illegal in open of a file
author
Andrew Tridgell
<tridge@samba.org>
Sun, 14 Nov 2004 23:37:02 +0000
(23:37 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:05:49 +0000
(13:05 -0500)
(This used to be commit
ad7815fababe5783df5e8fb4a490921a5af693d6
)
source4/ntvfs/posix/pvfs_open.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_open.c
b/source4/ntvfs/posix/pvfs_open.c
index b07922dcbd3cbf82b506bba4559e966a2f715082..9bb34876793415a9e22203ec948516b0a1b86a08 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_open.c
+++ b/
source4/ntvfs/posix/pvfs_open.c
@@
-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);