D6408: libzip: preserve permissions when extracting files

Elvis Angelaccio noreply at phabricator.kde.org
Tue Jun 27 14:05:03 UTC 2017


elvisangelaccio created this revision.
Restricted Application added a subscriber: kde-utils-devel.
Restricted Application added a project: Ark.

REVISION 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.
  
  BUG: 381499
  FIXED-IN: 17.07.80

TEST PLAN
  This fixes the 2 failing libzip test cases in ExtractTest::testPreservePermissions().

REPOSITORY
  R36 Ark

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D6408

AFFECTED FILES
  plugins/libzipplugin/CMakeLists.txt
  plugins/libzipplugin/libzipplugin.cpp

To: elvisangelaccio, #ark, rthomsen
Cc: kde-utils-devel, tctara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20170627/ca6d6a40/attachment.html>


More information about the Kde-utils-devel mailing list