[bug] [zip] Self-conflict when extracting a zip into an empty directory
- Have a zip of 15-20 files of 60K each, for example:
for i in {1..15} ; do head -c 60000 /dev/random > file_$i.png ; done
zip out.zip *.png
- To rule out a corrupted archive, I used two impls (Share to HTTP, Ubuntu's
zip
).
- Move to the phone
python3 -m http.server 8080
- Extract:
- Open android-file-manager.
- Tap the archive -
View Archive
.
- Select all files - Copy.
- Press the Back button to return to the directory.
- Paste.
- You're asked to overwrite a file with itself.
- A second test on the same zip file gave a different file name.
- The first date (2023) is correct.
- The second date is near the Unix epoch (which is expressed as the integer
0
if measured in Unix time), I don't know where the exact day and time could come from.
![shot2](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)