summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/fontconfig-cache-ignore-mtime.patch
blob: 3afe8cfd787772fdbee901d1411a2683c4b99c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Pretend that stat's mtime is broken, so that the fontconfig cache does not
depend upon modification time to determine if a cache is stale.

diff --git a/src/fcstat.c b/src/fcstat.c
index 9b54e2b4..76d7780e 100644
--- a/src/fcstat.c
+++ b/src/fcstat.c
@@ -415,6 +415,7 @@ FcIsFsMmapSafe (int fd)
 FcBool
 FcIsFsMtimeBroken (const FcChar8 *dir)
 {
+    return FcTrue;
     int fd = FcOpen ((const char *) dir, O_RDONLY);
 
     if (fd != -1)