commit | e3393513c5f18e726795103f54b5ffd52a371638 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Sat Jul 05 23:10:27 2003 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Sat Jul 05 23:10:27 2003 +0000 |
tree | 2841757c7c8bb6c335376caecce0fd4646d48a56 | |
parent | 9f894f4062dbdd427895a9d12ca06e34791a4fb3 [diff] [blame] |
Be certain to not abort prematurely when reading stuff from pipes.
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 @@ 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"); }