The same happens when re-compressing an archive if the archive only stores one empty file, it even deletes the to-be-compressed archive:
$toucha
$zipz.zipa
adding:a(stored0%)
$ls-1
a
z.zip
$advzip-zz.zip
Failedstatfilez.ziponz.zip[atunsignedintfile_size(conststring&):file.cc:199]
$ls-1
a
$toucha
$echob>b
$zipz.zipab
adding:a(stored0%)adding:b(stored0%)
$ls-1
a
b
z.zip
$advzip-zz.zip
28418063%z.zip
28418063%
$ls-1
a
b
z.zip
$zipinfo-1z.zip
a
b
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
patch
The bug isn't entirely fixed. Empty file is still not added to the archive if that's the only file to add to the archive:
Last edit: Thomas Debesse 2022-07-09
The same happens when re-compressing an archive if the archive only stores one empty file, it even deletes the to-be-compressed archive:
The same happens if the only file in the archive is a directory: advzip fails and the to-be-recompressed zip is deleted: