fixed error code for write on a directory
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 May 2008 01:48:21 +0000 (11:48 +1000)
committerAndrew 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

index dda8c8340738e4b8d16e1f12200ab83934d3a6a7..1f662f13fcdab52618bb4c5f07d8357dc9c57ef2 100644 (file)
@@ -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))) {