mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Call -fileManagerByPreservingAuthorizationRights during cleanup
Since cleanup may be invoked after 2nd stage failed for example.
This commit is contained in:
1 parent
c9f66cdeff
commit
60fcbe4f88
1 file changed
+2
-2
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user