diff options
author | marha <marha@users.sourceforge.net> | 2013-09-04 16:28:48 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-09-04 16:28:48 +0200 |
commit | b602729f06a62d29e136cf2aeca9544471371e0d (patch) | |
tree | 403d96659d5726e26edafb2bbb3c1198e783e3a0 /fontconfig/src | |
parent | caffc15f0b9e35698a6039fa3df2fa6a588608e6 (diff) | |
parent | b828531d8b6da75a258d12f97df0f4e49f75ab98 (diff) | |
download | vcxsrv-b602729f06a62d29e136cf2aeca9544471371e0d.tar.gz vcxsrv-b602729f06a62d29e136cf2aeca9544471371e0d.tar.bz2 vcxsrv-b602729f06a62d29e136cf2aeca9544471371e0d.zip |
Merge remote-tracking branch 'origin/released'
* origin/released:
fontconfig xkeyboard-config git update 4 Sep 2013
Diffstat (limited to 'fontconfig/src')
-rw-r--r-- | fontconfig/src/fcxml.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fontconfig/src/fcxml.c b/fontconfig/src/fcxml.c index 9cb1fb2ba..1a3cef460 100644 --- a/fontconfig/src/fcxml.c +++ b/fontconfig/src/fcxml.c @@ -2234,11 +2234,6 @@ FcParseInclude (FcConfigParse *parse) /* No config dir nor file on the XDG directory spec compliant place * so need to guess what it is supposed to be. */ - FcChar8 *parent = FcStrDirname (s); - - if (!FcFileIsDir (parent)) - FcMakeDirectory (parent); - FcStrFree (parent); if (FcStrStr (s, (const FcChar8 *)"conf.d") != NULL) goto userdir; else @@ -2260,6 +2255,11 @@ FcParseInclude (FcConfigParse *parse) { if (FcFileIsDir (filename)) { + FcChar8 *parent = FcStrDirname (userdir); + + if (!FcFileIsDir (parent)) + FcMakeDirectory (parent); + FcStrFree (parent); if (FcFileIsDir (userdir) || rename ((const char *)filename, (const char *)userdir) != 0 || symlink ((const char *)userdir, (const char *)filename) != 0) @@ -2273,6 +2273,11 @@ FcParseInclude (FcConfigParse *parse) } else { + FcChar8 *parent = FcStrDirname (userconf); + + if (!FcFileIsDir (parent)) + FcMakeDirectory (parent); + FcStrFree (parent); if (FcFileIsFile (userconf) || rename ((const char *)filename, (const char *)userconf) != 0 || symlink ((const char *)userconf, (const char *)filename) != 0) |