mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
This function shouldn't be concerned about symlinks
Besides, the path passed into this function in our code comes from a NSBundle
This commit is contained in:
1 parent
260235b2a0
commit
9e1664b42e
1 file changed
-1
Vendored
-1
@@ -17,7 +17,6 @@ BOOL SUNeedsSystemAuthorizationAccess(NSString *path, NSString *installationType
|
||||
} else if ([installationType isEqualToString:SUInstallationTypePackage]) {
|
||||
result = NO;
|
||||
} else {
|
||||
#warning what about symbolic links?
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
result = ![fileManager isWritableFileAtPath:path] || ![fileManager isWritableFileAtPath:[path stringByDeletingLastPathComponent]];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user