diff options
author | Tom Anderson <thomasanderson@chromium.org> | 2018-04-11 17:24:43 -0700 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2018-04-17 13:49:41 +0900 |
commit | 7ad010e80bdf8e41303e322882ece908f5e04c74 (patch) | |
tree | ca9de802105164ac70c9def5ae7fb99b07f87fc4 /src | |
parent | c60ed9ef66e59584f8b54323018e9e6c69925c7e (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/fcxml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcxml.c b/src/fcxml.c index 7c8aaac4..aa6612df 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -3443,7 +3443,7 @@ _FcConfigParse (FcConfig *config, FcStrBufInit (&sbuf, NULL, 0); - fd = FcOpen ((char *) filename, O_RDONLY); + fd = FcOpen ((char *) realfilename, O_RDONLY); if (fd == -1) goto bail1; |