r566 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 30 22:41:50 EDT 2008


Author: icculus
Date: 2008-05-30 22:41:50 -0400 (Fri, 30 May 2008)
New Revision: 566

Modified:
   trunk/platform_unix.c
Log:
Fixed MojoPlatform_unlink() failing on dangling symlinks (thanks, Gerry JJ!).


Modified: trunk/platform_unix.c
===================================================================
--- trunk/platform_unix.c	2008-05-31 01:55:29 UTC (rev 565)
+++ trunk/platform_unix.c	2008-05-31 02:41:50 UTC (rev 566)
@@ -508,7 +508,7 @@
 {
     boolean retval = false;
     struct stat statbuf;
-    if (stat(fname, &statbuf) != -1)
+    if (lstat(fname, &statbuf) != -1)
     {
         if (S_ISDIR(statbuf.st_mode))
             retval = (rmdir(fname) == 0);




More information about the mojosetup-commits mailing list