Zcat seems to be broken - running:

./gzip -c /bin/bash | ./gunzip -c > bash.out && cmp /bin/bash bash.out && echo 
OK

produces CRC errors and an output file that is massively too big.

I think the problem is in the routine that writes the output bytes - very 
simple patch attached that seems to fix the problem.




Mike Moreton
Software Project Leader
Frontier Silicon Ltd

D +44 1223 497780

www.frontier-silicon.com <http://www.frontier-silicon.com/>
Ashwell Point, Babraham Road, Sawston, Cambridge, CB22 3LJ, UK

Frontier Silicon Ltd is a Toumaz Group company (the Group also includes 
Frontier Microsystems), registered in England and Wales - company no. 4213838. 
Registered address: 137 Euston Road, London, NW1 2AA

Attachment: 0001-Fix-error-in-writing-output-that-was-causing-zcat-to.patch
Description: 0001-Fix-error-in-writing-output-that-was-causing-zcat-to.patch

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to