Use realfilename for FcOpen in _FcConfigParse

realfilename is the file name after sysroot adjustments.  It should be used
instead of filename in the call to FcOpen() which forwards the name directly to
open().

Though I don't explicitly request a sysroot, I was getting error messages saying
"failed reading config file".  This CL fixes the error spam.
This commit is contained in:
Tom Anderson 2018-04-11 17:24:43 -07:00 committed by Akira TAGOH
parent c60ed9ef66
commit 7ad010e80b
1 changed files with 1 additions and 1 deletions

View File

@ -3443,7 +3443,7 @@ _FcConfigParse (FcConfig *config,
FcStrBufInit (&sbuf, NULL, 0); FcStrBufInit (&sbuf, NULL, 0);
fd = FcOpen ((char *) filename, O_RDONLY); fd = FcOpen ((char *) realfilename, O_RDONLY);
if (fd == -1) if (fd == -1)
goto bail1; goto bail1;