Merge pull request #348 from ZipArchive/Coeur-permissions

adding read+write permissions
This commit is contained in:
Joshua Hudson 2017-07-17 08:31:44 -07:00 committed by GitHub
commit 75530e03e7

View File

@ -415,8 +415,8 @@ NSString *const SSZipArchiveErrorDomain = @"SSZipArchiveErrorDomain";
}
}
// Set the original permissions on the file
uLong permissions = fileInfo.external_fa >> 16;
// Set the original permissions on the file (+read/write to solve #293)
uLong permissions = fileInfo.external_fa >> 16 | 0b110000000;
if (permissions != 0) {
// Store it into a NSNumber
NSNumber *permissionsValue = @(permissions);