is older than the (newest) config file.
+2005-11-02 Patrick Lam <plam@mit.edu>
+ * src/fccache.c (FcGlobalCacheLoad):
+
+ Fix thinko: actually, the whole global cache is stale
+ if the global cache is older than the (newest) config file.
+
2005-11-02 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcGlobalCacheLoad):
* src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
if (!strlen(name_buf))
break;
- /* Directory must be older than the global cache file, and
- also must be older than the config file. */
+ /* Directory must be older than the global cache file; also
+ cache must be newer than the config file. */
if (stat ((char *) name_buf, &dir_stat) < 0 ||
dir_stat.st_mtime > cache_stat.st_mtime ||
- (config_time.set && dir_stat.st_mtime > config_time.time))
+ (config_time.set && cache_stat.st_mtime < config_time.time))
{
FcCache md;