You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
minizip Example: Compressed text file is decompressed as empty directory #355
When I compress a single text file using the minizip example binary and I decompress it, an empty directory with the name of the text file is generated.
Steps for reproduction:
Compressing the text file "test/lorem-ipsum.txt" ./minizip lorem-ipsum_1.zip test/lorem-ipsum.txt
Decompressing the archive lorem-ipsum_1.zip:
./minizip -x lorem-ipsum_1.zip
Minizip 2.8.1 - https://github.com/nmoinvaz/minizip
---------------------------------------------------
-x lorem-ipsum_1.zip
Archive lorem-ipsum_1.zip
Extracting lorem-ipsum.txt
Error -111 saving zip entries to disk lorem-ipsum_1.zip
Listing the content using the -l option seems to be ok:
./minizip -l lorem-ipsum_1.zip
Minizip 2.8.1 - https://github.com/nmoinvaz/minizip
---------------------------------------------------
-l lorem-ipsum_1.zip
Packed Unpacked Ratio Method Attribs Date Time CRC-32 Name
------ -------- ----- ------ ------- ---- ---- ------ ----
625 3977 15% Defl:N 81a40080 01-06-19 12:37 cdae061d lorem-ipsum.txt
But also unzip is unable to decompress the archive - no files are extracted:
unzip lorem-ipsum.zip
Archive: lorem-ipsum.zip
unzip: zip flags 1 and 8 are not supported
I'm using minizip on an embedded ARM Cortex A9 platform running Linux 4.9.88.
Thank you for the fix - it works now!
The problem with the unzip tool is still there, but it seems to me that this is more related to unzip than to minizip.
Activity
nmoinvaz commentedon Jan 7, 2019
This should be resolved now in b150432 in the dev branch. Thanks for reporting it.
telkamp commentedon Jan 7, 2019
Thank you for the fix - it works now!
The problem with the unzip tool is still there, but it seems to me that this is more related to unzip than to minizip.