ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
618 stars 76 forks source link

BUG: lrzip -i sometimes incorrectly shows compression mode #116

Closed pete4abw closed 5 years ago

pete4abw commented 5 years ago

When the last block of a file has no compression, just rzip, lrzip incorrectly shows "rzip compression only" even when a compression switch is used. This occurs mainly for small files. It happens for all modes. To reproduce, run unzip file.zip LRZIP=NOCONFIG lrzip --lzma -o file.--lzma.lrz file $lrzip -i -v file.--lzma.lrz

Detected lrzip version 0.6 file. Rzip chunk 1: Chunk byte width: 2 Chunk size: 48894 Stream: 0 Block Comp Percent Size 1 none 100.0% 10 / 10 Stream: 1 Block Comp Percent Size 1 lzma 6.6% 3233 / 48894 2 none 0.0% 0 / 0 Rzip compression: 100.2% 48904 / 48894 Back end compression: 6.6% 3243 / 48904 Overall compression: 6.6% 3243 / 48894 file.--lzma.lrz: lrzip version: 0.6 file Compression: rzip alone Decompressed file size: 48894 Compressed file size: 3322 Compression ratio: 14.718 MD5 used for integrity testing MD5: 72d4ff27a28afbc066d5804999d5a504>

file.zip

pete4abw commented 5 years ago

Fixed by #131