patch: unzip succeeds with CRC errors

Rob Landley rob at landley.net
Fri Mar 24 18:55:52 PST 2006


On Friday 24 March 2006 6:23 pm, Rich Felker wrote:
> 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..

Generally if there's one crc error, there will be more.

However, if you want to defer exiting with an error, this is what the global 
variable bb_default_error_retval is for.  (Just FYI...)

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list