]> git.wh0rd.org - fontconfig.git/commit
FcConfigUptoDate breaks if directory mtime is in the future. Bug 14424.
authorSayamindu Dasgupta <sayamindu@gmail.com>
Sat, 24 May 2008 23:15:27 +0000 (16:15 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 24 May 2008 23:15:27 +0000 (16:15 -0700)
commitad3fc667914d19435ade56adc8afe584d5605d10
tree84f5d8701fbc102acc992491cff04fc02c2c640f
parentb808204023ab47eb06dc520665eb7a0473320a9b
FcConfigUptoDate breaks if directory mtime is in the future. Bug 14424.

At OLPC, we came across a bug where the Browse activity (based on xulrunner)
took 100% CPU after an upgrade/. It turns out the Mozilla uses
FcConfigUptoDate() to check if new fonts have been added to the system, and
this function was always returning FcFalse since we have the mtimes of some
font directories set in the future. The attached patch makes
FcConfigUptoDate() print a warning and return FcTrue if mtime of directories
are in the future.
src/fccfg.c