diff options
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/os2/readwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/os2/readwrite.c b/file_io/os2/readwrite.c index 65fee7854..38855b035 100644 --- a/file_io/os2/readwrite.c +++ b/file_io/os2/readwrite.c @@ -74,7 +74,7 @@ APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, apr_size *nbytes = rc == 0 ? pos - (char *)buf : 0; apr_thread_mutex_unlock(thefile->mutex); - if (*nbytes == 0 && rc == 0) { + if (*nbytes == 0 && rc == 0 && thefile->eof_hit) { return APR_EOF; } |