Commit a484932
authored
fix: Default to 0644 when IPA entries have no Unix permissions (#13)
IPAs zipped on Windows store NTFS attributes in the ZIP external file
attributes and leave the Unix mode bits (the high 16 bits of external_fa)
unset. unzipArchiveAtURL: then derived a permission of 0 from those entries
and applied it with setAttributes:, leaving the extracted files with mode
0000. Subsequent reads during signing failed, surfacing to the user as
"You don't have permission".
Fall back to 0644 when no Unix mode bits are present so these archives
extract with readable permissions.
Fixes SideStore/SideStore#4471 parent 7efe511 commit a484932
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
0 commit comments