Added a check to make sure 0 permissions are not set

This commit is contained in:
Corbin Hughes
2013-07-01 04:55:42 -05:00
parent 9d322d173f
commit adfc3cae92
+2 -4
View File
@@ -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);