[git commit] uncompress: die on read errors

Denys Vlasenko vda.linux at googlemail.com
Mon Aug 22 02:59:41 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=a04e4c2266241b1af8f50b0d78f13be866b405c4
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 archival/libarchive/decompress_uncompress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/archival/libarchive/decompress_uncompress.c b/archival/libarchive/decompress_uncompress.c
index 329894b..d1061a2 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;
 		}
 
-- 
1.7.3.4



More information about the busybox-cvs mailing list