uncompress: die on read errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-08-22 04:59:41 +02:00
parent c5f7847659
commit a04e4c2266

View File

@ -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;
}