After some investigations it seems mc isn't able to handle zip files with
entries which have broken Unix file attributes. Whereas the zip file
itself can be extracted without any problem.
'''zip with valid Unix permissions'''
{{{
$ /usr/lib/mc/extfs.d/uzip list foo.zip
drwxrwxrwx 1 1000 1000 0 03/27/2015 04:39:26 addons/
}}}
{{{
$ zipinfo foo.zip | grep Unix
file system or operating system of origin: Unix
Unix file attributes (040777 octal): drwxrwxrwx
}}}
'''zip with invalid Unix permissions'''
{{{
$ /usr/lib/mc/extfs.d/uzip list foo_broken.zip
?rwsrwsrwt 1 1000 1000 0 03/27/2015 04:39:26 addons/
}}}
{{{
$ zipinfo foo_broken.zip | grep Unix
file system or operating system of origin: Unix
Unix file attributes (177777 octal): ?rwsrwsrwt
}}}
issue is also on github: https://github.com/MidnightCommander/mc/issues/55
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center
* component: mc-core => mc-vfs
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:1>
Comment (by and):
Thanks fubbes and/or SubOptimal for reporting.
unzip handled object as directory if filename ended with '/'
it will not depend on given file permission
So zipinfo can show strange perms but unzip can handle it.
patch attached.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:2>
* milestone: Future Releases => 4.8.16
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:3>
* owner: => andrew_b
* status: new => accepted
* branch_state: no branch => on review
Comment:
Branch: 3433_zip_dir_perms
changeset:2e04dfd8f62557d345e813cc0f117490315473f6
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:4>
* votes: => andrew_b
* branch_state: on review => approved
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:5>
* status: accepted => testing
* votes: andrew_b => committed-master
* resolution: => fixed
* branch_state: approved => merged
Comment:
Merged to master: [2e04dfd8f62557d345e813cc0f117490315473f6].
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:6>
* status: testing => closed
--
Ticket URL: <http://www.midnight-commander.org/ticket/3433#comment:7>