diff options
author | Michael Brown | 2008-03-25 21:29:42 +0100 |
---|---|---|
committer | Michael Brown | 2008-03-25 21:29:42 +0100 |
commit | ee5bdb0d758a953a4f044795a3571ecb5cf3c735 (patch) | |
tree | 152c104cd44640fbd5ee83734746e458a208b3c8 /src/core/posix_io.c | |
parent | [DHCP] Fix DHCP state confusion. (diff) | |
download | ipxe-ee5bdb0d758a953a4f044795a3571ecb5cf3c735.tar.gz ipxe-ee5bdb0d758a953a4f044795a3571ecb5cf3c735.tar.xz ipxe-ee5bdb0d758a953a4f044795a3571ecb5cf3c735.zip |
[PXEXT] Avoid returning a false EOF when we have an empty buffer queued
Diffstat (limited to 'src/core/posix_io.c')
-rw-r--r-- | src/core/posix_io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c index 2e3781ad..b48c1f80 100644 --- a/src/core/posix_io.c +++ b/src/core/posix_io.c @@ -293,7 +293,9 @@ ssize_t read_user ( int fd, userptr_t buffer, off_t offset, size_t max_len ) { free_iob ( iobuf ); } file->pos += len; - return len; + if ( len ) + return len; + break; } /* If file has completed, return (after returning all data) */ |