summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2006-01-14 21:23:03 +0000
committerPatrick Lam <plam@MIT.EDU>2006-01-14 21:23:03 +0000
commit8a0b0ed6d01e4e20ab6727211fe5823395a9b4c4 (patch)
tree4c4317ffa425c8b71dffa0f24be6d922e4947995 /fc-cache
parentdf3efc11a9584e2099366c31ba64ac9346760321 (diff)
downloadfontconfig-8a0b0ed6d01e4e20ab6727211fe5823395a9b4c4.tar.gz
Compare device numbers as well as inodes. Always normalize directory names
before comparing them. Allocate extra space for appended '/' in directory name. reviewed by: plam
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 6fcf04d..4900e45 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -204,7 +204,7 @@ scanDirs (FcStrList *list, FcConfig *config, char *program, FcBool force, FcBool
set->nfont, nsubdirs (subdirs));
if (!FcDirCacheValid (dir))
- if (!FcDirCacheUnlink (dir))
+ if (!FcDirCacheUnlink (dir, config))
ret++;
if (!FcDirSave (set, subdirs, dir))