1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/posix/preadv.c: Reading of zero bytes is no error.

* sysdeps/posix/readv.c: Likewise.
	Reported by Markus Armbruster <armbru@redhat.com>.
This commit is contained in:
Ulrich Drepper
2009-04-17 21:26:34 +00:00
parent 17a5b24e01
commit 571ac26f69
3 changed files with 6 additions and 2 deletions

View File

@ -70,7 +70,7 @@ __libc_readv (int fd, const struct iovec *vector, int count)
/* Read the data. */
ssize_t bytes_read = __read (fd, buffer, bytes);
if (bytes_read <= 0)
if (bytes_read < 0)
return -1;
/* Copy the data from BUFFER into the memory specified by VECTOR. */