uncompress: die on read errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1_20_stable
Denys Vlasenko 2011-08-22 04:59:41 +02:00
parent c5f7847659
commit a04e4c2266
1 changed files with 1 additions and 1 deletions

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