Changes between Version 1 and Version 2 of Ticket #30807, comment 3


Ignore:
Timestamp:
Sep 29, 2019, 6:48:00 AM (5 years ago)
Author:
Ad Timmering

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30807, comment 3

    v1 v2  
    66
    77* The reason this works is because `django.utils.archive.BaseArchive` has a method called `_copy_permissions` that only reflects permissions **if** the file in the archive at least has 0o4 (owner-read, defined in `stat.S_IROTH`). Because this file has no permissions (also no user read), permissions are not correctly updated to reflect permissions in the archive.
    8 
    9 (Not sure I understand intent of the comment added in the method:/)
    108
    119{{{
     
    2018            os.chmod(filename, mode)
    2119}}}
     20
     21* Permission code introduced to fix #27628 (Fixed unarchiving a file without permission data)
     22* Above fixes a change introduced in #26494 (Made Archive.extract() preserve file permissions).
Back to Top