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:
Zorg committed 2016-07-26 20:50:23 -04:00
1 parent 260235b2a0
commit 9e1664b42e
1 file changed
-1
-1
View File
@@ -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]];
}