Changes between Version 1 and Version 2 of Ticket #30807, comment 3
- Timestamp:
- Sep 29, 2019, 6:48:00 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30807, comment 3
v1 v2 6 6 7 7 * 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:/)10 8 11 9 {{{ … … 20 18 os.chmod(filename, mode) 21 19 }}} 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).