Bug 96

Summary: font-config crashes when the filesystem is write only
Product: fontconfig Reporter: Jonathan Blandford <jrb>
Component: fc-cacheAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: 2.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 269    
Attachments: patch

Description Jonathan Blandford 2003-06-25 16:58:39 UTC
Here's a patch to fix it.  I don't know if it's the right fix or not.
Comment 1 Jonathan Blandford 2003-06-25 16:59:10 UTC
Created attachment 49 [details] [review]
patch
Comment 2 Jonathan Blandford 2003-06-25 17:26:31 UTC
I meant read-only, obviously.
Comment 3 Keith Packard 2003-06-25 17:35:39 UTC
I think the real problem is that $HOME isn't set.  Fontconfig is supposed to
survive this case, but the attached patch demonstrates a case where this isn't
true.  I found another issue with this same case.
Comment 4 Keith Packard 2003-06-25 17:45:47 UTC
I've audited uses of config->cache and other uses of $HOME and I think this was
the only remaining problem.  I've committed patches for this to both HEAD and
the 2.2 branch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.