MacPaw/XADMaster

Erroneous "This archive requires a password to list."

ci-macpaw opened this issue · 0 comments

The attached sample zip archive (created with 'zip -y -e', password is: sample) requires a password to list the link entry with 'lsar -l sample.zip':


sample.zip: Zip
     Flags  File size   Ratio  Mode  Date       Time   Name
     =====  ==========  =====  ====  ========== =====  ====
  0. ---E-           0  -----  None  2017-06-06 13:01  file
This archive requires a password to list.
Password (will not be shown):

Entering any (even empty) password continues listing:


  1. --LE-           4  -300%  None  2017-06-06 13:01  link
(Flags: D=Directory, R=Resource fork, L=Link, E=Encrypted, @=Extended attributes)

This seems to be only the case with a link entry, although listing should be possible without password:


$ unzip -Z -l sample.zip 
Archive:  sample.zip
Zip file size: 354 bytes, number of entries: 2
-rw-r-----  3.0 unx        0 BX       12 stor 06-Jun-17 13:01 file
lrwxrwxrwx  3.0 unx        4 BX       16 stor 06-Jun-17 13:01 link
2 files, 4 bytes uncompressed, 4 bytes compressed:  0.0%

Is this a bug? With zip (only)? With links (only)?

If - for some reason - lsar needs a password to list certain entries in an archive that is not header-encrypted, but has encrypted entries only, it would be more than convenient to have option (like -P) to get this information, like:


$lsar -P sample.zip
sample.zip: Zip
This archive requires a password to list.

Without a possibility to check prior to listing it is impossible to run a 'lsar -l' command as a background process.