git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f39fb
)
fixed error code for write on a directory
author
Andrew Tridgell
<tridge@samba.org>
Wed, 28 May 2008 01:48:21 +0000
(11:48 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 28 May 2008 01:48:21 +0000
(11:48 +1000)
(This used to be commit
68eb5b050edeaa9c95348013b68a785c3f2c21fa
)
source4/ntvfs/posix/pvfs_write.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_write.c
b/source4/ntvfs/posix/pvfs_write.c
index dda8c8340738e4b8d16e1f12200ab83934d3a6a7..1f662f13fcdab52618bb4c5f07d8357dc9c57ef2 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_write.c
+++ b/
source4/ntvfs/posix/pvfs_write.c
@@
-45,7
+45,7
@@
NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs,
}
if (f->handle->fd == -1) {
- return NT_STATUS_
FILE_IS_A_DIRECTORY
;
+ return NT_STATUS_
INVALID_DEVICE_REQUEST
;
}
if (!(f->access_mask & (SEC_FILE_WRITE_DATA | SEC_FILE_APPEND_DATA))) {