Revision: 5458
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5458&view=rev
Author:   hofman
Date:     2009-07-02 21:32:07 +0000 (Thu, 02 Jul 2009)

Log Message:
-----------
don't follow leaf symlink to check whether file exists, otherwise we get false 
negatives for broken symlinks

Modified Paths:
--------------
    trunk/Files_SKExtensions.m

Modified: trunk/Files_SKExtensions.m
===================================================================
--- trunk/Files_SKExtensions.m  2009-07-02 16:27:40 UTC (rev 5457)
+++ trunk/Files_SKExtensions.m  2009-07-02 21:32:07 UTC (rev 5458)
@@ -97,7 +97,7 @@
 BOOL SKFileExistsAtPath(NSString *path) {
     FSRef fileRef;
     
-    if (path && noErr == FSPathMakeRef((UInt8 *)[path 
fileSystemRepresentation], &fileRef, NULL))
+    if (path && noErr == FSPathMakeRefWithOptions((UInt8 *)[path 
fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &fileRef, 
NULL))
         return YES;
     else
         return NO;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to