From 9e1664b42e3ddb9ebe79affeb54a56f5bcb7391b Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 26 Jul 2016 20:50:23 -0400 Subject: [PATCH] This function shouldn't be concerned about symlinks Besides, the path passed into this function in our code comes from a NSBundle --- Sparkle/SUSystemAuthorization.m | 1 - 1 file changed, 1 deletion(-) diff --git a/Sparkle/SUSystemAuthorization.m b/Sparkle/SUSystemAuthorization.m index 4ca36d59..00defa91 100644 --- a/Sparkle/SUSystemAuthorization.m +++ b/Sparkle/SUSystemAuthorization.m @@ -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]]; }