]> git.wh0rd.org Git - fontconfig.git/commitdiff
On Windows, unlink before rename. Reported by Tim Evans.
authorPatrick Lam <plam@MIT.EDU>
Thu, 23 Mar 2006 04:22:28 +0000 (04:22 +0000)
committerPatrick Lam <plam@MIT.EDU>
Thu, 23 Mar 2006 04:22:28 +0000 (04:22 +0000)
ChangeLog
src/fcatomic.c

index b969083f9714f3e264d9289595937b4e361e5f95..1e863868f959c472c1e88b8a835009989e30c264 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-22  Patrick Lam  <plam@mit.edu>
+       * src/fcatomic.c:
+
+       On Windows, unlink before rename.  Reported by Tim Evans.
+
 2006-03-08  Egmont Koblinger  <egmont@uhulinux.hu>
        reviewed by: plam
 
index a8487f33ff32fdc58e77b416044c3831c41c9d1c..a8b30f88c5f8aa5c62b0237703339345454e9ab5 100644 (file)
@@ -177,6 +177,9 @@ FcAtomicOrigFile (FcAtomic *atomic)
 FcBool
 FcAtomicReplaceOrig (FcAtomic *atomic)
 {
+#ifdef _WIN32
+    unlink (atomic->file);
+#endif
     if (rename ((char *) atomic->new, (char *) atomic->file) < 0)
        return FcFalse;
     return FcTrue;