From da9e48cf29f72c9e6e2ffebdc7481c7e88a0e695 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 19 Apr 2015 19:21:39 -0400 Subject: [PATCH] Added comment why -[NSFileManager fileExistsAtPath:] is not used --- Sparkle/SUBinaryDeltaApply.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle/SUBinaryDeltaApply.m b/Sparkle/SUBinaryDeltaApply.m index 1e61cd0a..43952df9 100644 --- a/Sparkle/SUBinaryDeltaApply.m +++ b/Sparkle/SUBinaryDeltaApply.m @@ -141,6 +141,7 @@ int applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFil NSString *sourceFilePath = [source stringByAppendingPathComponent:path]; NSString *destinationFilePath = [destination stringByAppendingPathComponent:path]; + // Don't use -[NSFileManager fileExistsAtPath:] because it will follow symbolic links BOOL fileExisted = verbose && [fileManager attributesOfItemAtPath:destinationFilePath error:nil]; BOOL removedFile = NO;