aboutsummaryrefslogtreecommitdiff
path: root/archival/libarchive
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-08-22 04:59:41 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-08-22 04:59:41 +0200
commita04e4c2266241b1af8f50b0d78f13be866b405c4 (patch)
tree703b0c7d3aaf2ee64c8d607cf8050cf16dfc602a /archival/libarchive
parentc5f7847659ccddd27c99b300e01f36516326aa3a (diff)
downloadbusybox-a04e4c2266241b1af8f50b0d78f13be866b405c4.tar.gz
uncompress: die on read errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive')
-rw-r--r--archival/libarchive/decompress_uncompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/decompress_uncompress.c b/archival/libarchive/decompress_uncompress.c
index 329894be1..d1061a2bb 100644
--- a/archival/libarchive/decompress_uncompress.c
+++ b/archival/libarchive/decompress_uncompress.c
@@ -164,7 +164,7 @@ unpack_Z_stream(int fd_in, int fd_out)
if (insize < (int) (IBUFSIZ + 64) - IBUFSIZ) {
rsize = safe_read(fd_in, inbuf + insize, IBUFSIZ);
if (rsize < 0)
- bb_error_msg(bb_msg_read_error);
+ bb_error_msg_and_die(bb_msg_read_error);
insize += rsize;
}