diff options
author | Eric Andersen | 2003-07-05 23:10:27 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-05 23:10:27 +0000 |
commit | e3393513c5f18e726795103f54b5ffd52a371638 (patch) | |
tree | 2841757c7c8bb6c335376caecce0fd4646d48a56 /archival/libunarchive/archive_xread.c | |
parent | 9f894f4062dbdd427895a9d12ca06e34791a4fb3 (diff) | |
download | busybox-e3393513c5f18e726795103f54b5ffd52a371638.zip busybox-e3393513c5f18e726795103f54b5ffd52a371638.tar.gz |
Be certain to not abort prematurely when reading stuff from pipes.
Diffstat (limited to 'archival/libunarchive/archive_xread.c')
-rw-r--r-- | archival/libunarchive/archive_xread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/archive_xread.c b/archival/libunarchive/archive_xread.c index 0b29dbf..d63d0d5 100644 --- a/archival/libunarchive/archive_xread.c +++ b/archival/libunarchive/archive_xread.c @@ -25,7 +25,7 @@ extern ssize_t archive_xread(const archive_handle_t *archive_handle, unsigned ch ssize_t size; size = archive_handle->read(archive_handle->src_fd, buf, count); - if (size == -1) { + if (size < 0) { bb_perror_msg_and_die("Read error"); } |