Don't unlink the fonts.cache-2 file even if there's no data to write; just
write an empty cache file. (thanks Lubos Lunak)
This commit is contained in:
parent
6aee8c6faa
commit
099f9a8683
|
@ -744,13 +744,6 @@ FcDirCacheWrite (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir)
|
||||||
|
|
||||||
current_dir_block = FcDirCacheProduce (set, &metadata);
|
current_dir_block = FcDirCacheProduce (set, &metadata);
|
||||||
|
|
||||||
if (!metadata.count && !dirs->size)
|
|
||||||
{
|
|
||||||
unlink ((char *)cache_file);
|
|
||||||
free (cache_file);
|
|
||||||
return FcTrue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (metadata.count && !current_dir_block)
|
if (metadata.count && !current_dir_block)
|
||||||
goto bail;
|
goto bail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue