patch: unzip succeeds with CRC errors

Paul Fox pgf at brightstareng.com
Mon Mar 27 17:15:08 UTC 2006


 > On Fri, Mar 24, 2006 at 03:29:47PM -0500, Paul Fox wrote:
 > > i assume unzip should return failure in the presence of
 > > crc errors, correct?  i'll apply this unless there are
 > > objections.
 > 
 > It should return failure, but not exit immediately. A corrupt file you
 > can try to recover data from is better than no file at all..

the errors are detected at file granularity -- so if you are trying to
unzip the whole archive, unzip will now stop after (fully extracting)
the first bad file, and won't process the rest of the archive. 
any individual file can still be extracted on its own, with
resulting success or failure.

paul
=---------------------
 paul fox, pgf at brightstareng.com



More information about the busybox mailing list