From adfc3cae925e512b3de0c97fd40ab89871609da6 Mon Sep 17 00:00:00 2001 From: Corbin Hughes Date: Mon, 1 Jul 2013 04:55:42 -0500 Subject: [PATCH] Added a check to make sure 0 permissions are not set --- SSZipArchive.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SSZipArchive.m b/SSZipArchive.m index a335381..67c89c3 100644 --- a/SSZipArchive.m +++ b/SSZipArchive.m @@ -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);