Bug 382815 - [libzip] ark drops x bit when creating zip archives
Summary: [libzip] ark drops x bit when creating zip archives
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: plugins (other bugs)
Version First Reported In: 17.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-27 18:50 UTC by bernhard67
Modified: 2017-10-21 18:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 17.12.0
Sentry Crash Report:


Attachments
zip Archive as described in the comment (326 bytes, application/zip)
2017-07-27 18:50 UTC, bernhard67
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bernhard67 2017-07-27 18:50:38 UTC
Created attachment 106901 [details]
zip Archive as described in the comment

ark drops x bit when creating a zip archive or extracting files from it.

I created a simple zip archive using the command line tool "zip":
mkdir testdir
touch testdir/testfile
chmod +x testdir/testfile
zip -r testdir.zip testdir

When extracting it with unzip the x bit is there. However, when extracting it with ark, the x bit gets dropped.

When you create the zip archive with "ark" instead of the command line tool "zip" the resulting zip archive is missing the x bit for testfile. So the bug occurs in both directions.
Comment 1 Elvis Angelaccio 2017-07-27 21:10:46 UTC
Extraction will be fixed in ark 17.08. Compression is still broken though.
Comment 2 Elvis Angelaccio 2017-07-27 21:11:25 UTC
As temporary workaround, you can disable the libzip plugin in the ark settings.
Comment 3 Ragnar Thomsen 2017-10-21 18:43:34 UTC
Git commit 16313b967cb0b33d0d1b3ef03e2f769e1040680b by Ragnar Thomsen.
Committed on 21/10/2017 at 18:41.
Pushed by rthomsen into branch 'master'.

libzip: Support file permissions when creating/opening archives

Permissions are read and set in the external attributes.
FIXED-IN: 17.12.0
Differential Revision: D8305

M  +106  -2    plugins/libzipplugin/libzipplugin.cpp
M  +1    -0    plugins/libzipplugin/libzipplugin.h

https://commits.kde.org/ark/16313b967cb0b33d0d1b3ef03e2f769e1040680b