diff options
author | Patrick Lam <plam@MIT.EDU> | 2006-03-23 04:21:10 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2006-03-23 04:21:10 +0000 |
commit | c02218223153b3022071e789def3fde8b556d6d6 (patch) | |
tree | 895ee83fbe35f31851cd0aeef595970687d22c2a /src/fcatomic.c | |
parent | 04af4f56dcaa6bdfbc67c0bc184ac88ccdfb03c1 (diff) |
On Windows, unlink before rename. Reported by Tim Evans.
Diffstat (limited to 'src/fcatomic.c')
-rw-r--r-- | src/fcatomic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fcatomic.c b/src/fcatomic.c index a8487f33..a8b30f88 100644 --- a/src/fcatomic.c +++ b/src/fcatomic.c @@ -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; |