diff --git a/libdevs.c b/libdevs.c index 39e7072..bb47fb6 100644 --- a/libdevs.c +++ b/libdevs.c @@ -415,7 +415,7 @@ static int read_all(int fd, char *buf, size_t count) if (rc < 0) { if (errno == EINTR) continue; - assert(errno == EIO); + assert(errno == EIO || errno == ENODATA); return - errno; } assert(rc != 0); /* We should never hit the end of the file. */