summaryrefslogtreecommitdiff
path: root/src/fcint.h
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2021-10-11 18:35:58 +0900
committerAkira TAGOH <akira@tagoh.org>2021-10-11 18:43:12 +0900
commit1d7669992798bb7fec7dc613c05310741d7b3781 (patch)
treedd3ee2c664f00931806e338bf163d967d788b065 /src/fcint.h
parent2d17232a45c55cdb8d082a3bcf13d423928fcd5e (diff)
downloadfontconfig-1d7669992798bb7fec7dc613c05310741d7b3781.tar.gz
Resolves symlinks against <dir prefix="relative">
When a config file is symlinked and obtaining an relative path from it for <dir>, it behaved like: $ realpath /path/to/foo.conf /path/to/realpath/foo.conf $ FONTCONFIG_FILE=/path/to/foo.conf fc-cache -v Font directories: /path/to/fonts /path/to/fonts: skipping, existing cache is valid: 1 fonts, 0 dirs /path/to/cachedir: cleaning cache directory fc-cache: succeeded And after this change: $ FONTCONFIG_FILE=/path/to/foo.conf fc-cache -v Font directories: /path/to/relpath/fonts /path/to/realpath/fonts: skipping, existing cache is valid: 1 fonts, 0 dirs /path/to/cachedir: cleaning cache directory fc-cache: succeeded Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/290
Diffstat (limited to 'src/fcint.h')
-rw-r--r--src/fcint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fcint.h b/src/fcint.h
index f7141c1..d6d44b0 100644
--- a/src/fcint.h
+++ b/src/fcint.h
@@ -1346,6 +1346,9 @@ FcPrivate FcChar32
FcStrHashIgnoreBlanksAndCase (const FcChar8 *s);
FcPrivate FcChar8 *
+FcStrRealPath (const FcChar8 *path);
+
+FcPrivate FcChar8 *
FcStrCanonFilename (const FcChar8 *s);
FcPrivate FcBool