diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-12-14 00:04:52 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-12-14 00:06:50 +0100 |
commit | 13276810b1b892d4aad62e2362e00afbe654b5b2 (patch) | |
tree | 005e8939e890d9c64682781d5641e1f66e8c9c07 /lib/io/unix/istream.c | |
parent | 22fea7fcdb2299401e1fc7a96a837046c96f7168 (diff) |
Fix unix istream eof flag
Propperly set the parent eof flag and not a local one that isn't
accessed at all.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/unix/istream.c')
-rw-r--r-- | lib/io/unix/istream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/io/unix/istream.c b/lib/io/unix/istream.c index 5898141..e0b728c 100644 --- a/lib/io/unix/istream.c +++ b/lib/io/unix/istream.c @@ -10,7 +10,6 @@ typedef struct { istream_t base; char *path; int fd; - bool eof; sqfs_u8 buffer[BUFSZ]; } file_istream_t; @@ -27,7 +26,7 @@ static int file_precache(istream_t *strm) ret = read(file->fd, strm->buffer + strm->buffer_used, diff); if (ret == 0) { - file->eof = true; + strm->eof = true; break; } |