diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:48:21 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:48:21 +1000 |
commit | 6222b8e7e215e1d0d7c82d40d35142b8c96afbf6 (patch) | |
tree | 0278ae60776b58167aaa5cf22c8b793bc18cc3db /source4/ntvfs | |
parent | b5f39fbda0b7b71c23f0df473d1206daaec88222 (diff) | |
download | samba-6222b8e7e215e1d0d7c82d40d35142b8c96afbf6.tar.gz samba-6222b8e7e215e1d0d7c82d40d35142b8c96afbf6.tar.bz2 samba-6222b8e7e215e1d0d7c82d40d35142b8c96afbf6.zip |
fixed error code for write on a directory
(This used to be commit 68eb5b050edeaa9c95348013b68a785c3f2c21fa)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/posix/pvfs_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_write.c b/source4/ntvfs/posix/pvfs_write.c index dda8c83407..1f662f13fc 100644 --- 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))) { |