Commit 71d6866d authored by Akira TAGOH's avatar Akira TAGOH

Fix the process substitution doesn't work with FONTCONFIG_FILE

Don't address the real filename when a named pipe is given in FONTCONFIG_FILE.
parent 452be812
Pipeline #110175 passed with stage
in 5 minutes and 34 seconds
......@@ -2466,12 +2466,19 @@ FcConfigRealFilename (FcConfig *config,
{
FcChar8 buf[FC_PATH_MAX];
ssize_t len;
struct stat sb;
if ((len = FcReadLink (n, buf, sizeof (buf) - 1)) != -1)
{
buf[len] = 0;
if (!FcStrIsAbsoluteFilename (buf))
/* We try to pick up a config from FONTCONFIG_FILE
* when url is null. don't try to address the real filename
* if it is a named pipe.
*/
if (!url && FcStat (n, &sb) == 0 && S_ISFIFO (sb.st_mode))
return n;
else if (!FcStrIsAbsoluteFilename (buf))
{
FcChar8 *dirname = FcStrDirname (n);
FcStrFree (n);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment