Merge pull request #65 from nibroc/master
Added check to ensure permissions are not explicitly set if they do not exist in the zip
This commit is contained in:
+2
-4
@@ -205,10 +205,8 @@
|
||||
}
|
||||
|
||||
// Set the original permissions on the file
|
||||
if (fileInfo.external_fa != 0) {
|
||||
// Get the permissions
|
||||
uLong permissions = fileInfo.external_fa >> 16;
|
||||
|
||||
uLong permissions = fileInfo.external_fa >> 16;
|
||||
if (permissions != 0) {
|
||||
// Store it into a NSNumber
|
||||
NSNumber *permissionsValue = @(permissions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user