diff options
author | Patrick Lam <plam@MIT.EDU> | 2006-01-14 21:23:03 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2006-01-14 21:23:03 +0000 |
commit | 8a0b0ed6d01e4e20ab6727211fe5823395a9b4c4 (patch) | |
tree | 4c4317ffa425c8b71dffa0f24be6d922e4947995 /fc-cache | |
parent | df3efc11a9584e2099366c31ba64ac9346760321 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 6fcf04d4..4900e45e 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)) |