summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2014-08-11 12:14:54 +0900
committerAkira TAGOH <akira@tagoh.org>2014-08-11 12:14:54 +0900
commit841753a93f0e5698663b7931b8456e7b96259f54 (patch)
tree262d5843a52047cb008e21c8dd1d48e54e44bac9
parent748a2ce9d4bd6aae90b974724b795056e2bcb4d7 (diff)
fallback to the another method to lock when link() failed
Bug 82358 - FcAtomicLock fails on OS X on network mounts https://bugs.freedesktop.org/show_bug.cgi?id=82358
-rw-r--r--src/fcatomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcatomic.c b/src/fcatomic.c
index c1daed93..2ce419f7 100644
--- a/src/fcatomic.c
+++ b/src/fcatomic.c
@@ -131,7 +131,7 @@ FcAtomicLock (FcAtomic *atomic)
return FcFalse;
}
ret = link ((char *) atomic->tmp, (char *) atomic->lck);
- if (ret < 0 && errno == EPERM)
+ if (ret < 0 && (errno == EPERM || errno == ENOTSUP))
{
/* the filesystem where atomic->lck points to may not supports
* the hard link. so better try to fallback