adding read+write permissions

This would grant read+write to all uncompressed files. An alternative way to implement it would be to make it an option.
This commit is contained in:
Antoine Cœur
2017-07-12 13:17:07 +08:00
committed by GitHub
parent 1a2e6cad09
commit d1d501d1d9
+2 -2
View File
@@ -414,8 +414,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);