https://bugs.kde.org/show_bug.cgi?id=381499

Elvis Angelaccio <elvis.angelac...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |17.07.80
      Latest Commit|                            |https://commits.kde.org/ark
                   |                            |/d3a7d7bb5fd9f6cdce027748f4
                   |                            |157b189dccdcef
         Resolution|---                         |FIXED

--- Comment #4 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
Git commit d3a7d7bb5fd9f6cdce027748f4157b189dccdcef by Elvis Angelaccio.
Committed on 27/06/2017 at 14:04.
Pushed by elvisangelaccio into branch 'master'.

libzip: preserve permissions when extracting files

Summary:
The zip format reserves the 2 leftmost bytes of the extended file
attribute field (32 bits) for the UNIX permissions.
If the zip archive was crated with such metadata, we can just use the
libzip api to retrieve the extended file attribute and extract the
mode_t value from it.
FIXED-IN: 17.07.80

Test Plan: This fixes the 2 failing libzip test cases in
ExtractTest::testPreservePermissions().

Reviewers: #ark, rthomsen

Subscribers: kde-utils-devel

Tags: #ark

Differential Revision: https://phabricator.kde.org/D6408

M  +1    -1    plugins/libzipplugin/CMakeLists.txt
M  +28   -0    plugins/libzipplugin/libzipplugin.cpp

https://commits.kde.org/ark/d3a7d7bb5fd9f6cdce027748f4157b189dccdcef

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to