Fix some sandbox issues.
This commit is contained in:
1 file changed
+2
-4
@@ -342,8 +342,7 @@
|
|||||||
BOOL noErr = YES;
|
BOOL noErr = YES;
|
||||||
|
|
||||||
#ifdef SB_SANDBOX
|
#ifdef SB_SANDBOX
|
||||||
if ([destination respondsToSelector:@selector(startAccessingSecurityScopedResource)])
|
[self.destURL startAccessingSecurityScopedResource];
|
||||||
[destination startAccessingSecurityScopedResource];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The file has been added directly to the queue
|
// The file has been added directly to the queue
|
||||||
@@ -425,8 +424,7 @@ bail:
|
|||||||
self.fileURL = filePathURL;
|
self.fileURL = filePathURL;
|
||||||
|
|
||||||
#ifdef SB_SANDBOX
|
#ifdef SB_SANDBOX
|
||||||
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)])
|
[self.destURL stopAccessingSecurityScopedResource];
|
||||||
[destination stopAccessingSecurityScopedResource];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return noErr;
|
return noErr;
|
||||||
|
|||||||
Reference in new issue
Block a user