On Windows, unlink before rename. Reported by Tim Evans.
This commit is contained in:
parent
d8fda87d5e
commit
ba76916ff6
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue