Call -fileManagerByPreservingAuthorizationRights during cleanup

Since cleanup may be invoked after 2nd stage failed for example.
This commit is contained in:
Zorg committed 2016-04-01 15:12:50 -04:00
1 parent c9f66cdeff
commit 60fcbe4f88
1 file changed
+2 -2
+2 -2
View File
@@ -192,7 +192,7 @@
}
// To carry over when we clean up the installation
self.fileManager = [fileManager fileManagerByPreservingAuthorizationRights];
self.fileManager = fileManager;
self.tempNewDirectoryURL = tempNewDirectoryURL;
self.tempOldDirectoryURL = tempOldDirectoryURL;
self.oldTempURL = oldTempURL;
@@ -241,7 +241,7 @@
- (void)cleanup
{
SUFileManager *fileManager = self.fileManager;
SUFileManager *fileManager = [self.fileManager fileManagerByPreservingAuthorizationRights];;
NSURL *oldTempURL = self.oldTempURL;
NSURL *tempOldDirectoryURL = self.tempOldDirectoryURL;
NSURL *tempNewDirectoryURL = self.tempNewDirectoryURL;