Differences From Artifact [75562dbfa9]:
- File
utils/ofzip/ZIPArchive.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 9720) [annotate] [blame] [check-ins using]
To Artifact [8f44d79647]:
- File utils/ofzip/ZIPArchive.m — part of check-in [4175b93242] at 2017-06-03 14:37:19 on branch trunk — OFFileManager: Mask modes to ensure safe modes (user: js, size: 9639) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
36 37 38 39 40 41 42 | static void setPermissions(OFString *path, OFZIPArchiveEntry *entry) { #ifdef OF_HAVE_CHMOD if (([entry versionMadeBy] >> 8) == OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_UNIX) { | | < < < | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | static void setPermissions(OFString *path, OFZIPArchiveEntry *entry) { #ifdef OF_HAVE_CHMOD if (([entry versionMadeBy] >> 8) == OF_ZIP_ARCHIVE_ENTRY_ATTR_COMPAT_UNIX) { uint16_t mode = [entry versionSpecificAttributes] >> 16; [[OFFileManager defaultManager] changePermissionsOfItemAtPath: path permissions: mode]; } #endif } |
︙ | ︙ |