summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-05-28 11:48:11 +1000
committerAndrew Tridgell <tridge@samba.org>2008-05-28 11:48:11 +1000
commitb5f39fbda0b7b71c23f0df473d1206daaec88222 (patch)
tree87e2fac0cafcde4cb1ef0b9cc37a528631827e51 /source4/ntvfs
parentf85cfa91616224226c4748e002a363828433b78b (diff)
downloadsamba-b5f39fbda0b7b71c23f0df473d1206daaec88222.tar.gz
samba-b5f39fbda0b7b71c23f0df473d1206daaec88222.tar.bz2
samba-b5f39fbda0b7b71c23f0df473d1206daaec88222.zip
fix error code for read on a directory
(This used to be commit afd4f47971bc5f63b32c44dad546a1a4011b86f4)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_read.c b/source4/ntvfs/posix/pvfs_read.c
index a01a8a57e3..8e1a59473f 100644
--- a/source4/ntvfs/posix/pvfs_read.c
+++ b/source4/ntvfs/posix/pvfs_read.c
@@ -46,7 +46,7 @@ NTSTATUS pvfs_read(struct ntvfs_module_context *ntvfs,
}
if (f->handle->fd == -1) {
- return NT_STATUS_FILE_IS_A_DIRECTORY;
+ return NT_STATUS_INVALID_DEVICE_REQUEST;
}
mask = SEC_FILE_READ_DATA;