Overview
Comment: | ofzip: LHA: Only try to set a mode if we have one |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
54c76965d7d12e24668f53e2ef71eacf |
User & Date: | js on 2018-06-03 20:58:05 |
Other Links: | manifest | tags |
Context
2018-06-03
| ||
23:08 | runtime/linklib: Do not pass exit() to Amiga lib check-in: a37a78d51b user: js tags: trunk | |
20:58 | ofzip: LHA: Only try to set a mode if we have one check-in: 54c76965d7 user: js tags: trunk | |
20:11 | Work around GCC being extremely buggy check-in: 44413ada84 user: js tags: trunk | |
Changes
Modified utils/ofzip/LHAArchive.m from [760ffd8cfa] to [88f33686f9].
︙ | ︙ | |||
31 32 33 34 35 36 37 38 | static OFZIP *app; static void setPermissions(OFString *path, OFLHAArchiveEntry *entry) { #ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS of_file_attributes_t attributes = [OFDictionary | > > > > > | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | static OFZIP *app; static void setPermissions(OFString *path, OFLHAArchiveEntry *entry) { #ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS OFNumber *mode = [entry mode]; if (mode == nil) return; of_file_attributes_t attributes = [OFDictionary dictionaryWithObject: mode forKey: of_file_attribute_key_posix_permissions]; [[OFFileManager defaultManager] setAttributes: attributes ofItemAtPath: path]; #endif } |
︙ | ︙ |