The Busybox 'unzip' utility returns a failure status and prints an
error message when it's given an properly formatted (but empty) zip
archive.
$ hexdump -C empty.zip
00000000 50 4b 05 06 00 00 00 00 00 00 00 00 00 00 00 00
|PK..............|
00000010 00 00 00 00 00 00 |......|
00000016
$ file empty.zip
empty.zip: Zip archive data (empty)
$ busybox unzip empty.zip || echo FAIL
Archive: empty.zip
unzip: invalid zip magic 06054B50
FAIL
Why is that an error?
--
Grant Edwards grant.b.edwards Yow! Somewhere in Tenafly,
at New Jersey, a chiropractor
gmail.com is viewing "Leave it to
Beaver"!
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox