uncompress: die on read errors
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Aug 2011 02:59:41 +0000 (04:59 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Aug 2011 02:59:41 +0000 (04:59 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/decompress_uncompress.c

index 329894be17d0fa7778d744af27530bd949c26520..d1061a2bb74c2d47d9d7f5eb7c8ca3bef6cf6c8d 100644 (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;
                }