diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-19 21:03:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-19 21:03:09 +0000 |
commit | fcc569637b85626078c9c353d5552e7847b4ca0a (patch) | |
tree | 2ed33cd1e4e3a9a1b76cf2a31054c715a2e8aea3 | |
parent | bc7c5d082e68488058a277d89c1b3a39b8f96faf (diff) | |
download | busybox-w32-fcc569637b85626078c9c353d5552e7847b4ca0a.tar.gz busybox-w32-fcc569637b85626078c9c353d5552e7847b4ca0a.tar.bz2 busybox-w32-fcc569637b85626078c9c353d5552e7847b4ca0a.zip |
unzip: add a comment explaining why we don't die
-rw-r--r-- | archival/unzip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 37781e44e..56a5eb625 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -107,6 +107,8 @@ static void unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd) | |||
107 | } | 107 | } |
108 | /* Validate decompression - size */ | 108 | /* Validate decompression - size */ |
109 | if (zip_header->formatted.ucmpsize != res.bytes_out) { | 109 | if (zip_header->formatted.ucmpsize != res.bytes_out) { |
110 | /* Don't die. Who knows, maybe len calculation | ||
111 | * was botched somewhere. After all, crc matched! */ | ||
110 | bb_error_msg("bad length"); | 112 | bb_error_msg("bad length"); |
111 | } | 113 | } |
112 | } | 114 | } |