From: Andrew Tridgell Date: Wed, 28 May 2008 01:48:21 +0000 (+1000) Subject: fixed error code for write on a directory X-Git-Tag: samba-4.0.0alpha4~24^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68eb5b050edeaa9c95348013b68a785c3f2c21fa;p=thirdparty%2Fsamba.git fixed error code for write on a directory --- diff --git a/source/ntvfs/posix/pvfs_write.c b/source/ntvfs/posix/pvfs_write.c index dda8c834073..1f662f13fcd 100644 --- a/source/ntvfs/posix/pvfs_write.c +++ b/source/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))) {