diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-21 03:20:34 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-21 03:20:37 +0900 |
commit | 969309c2b424f888b7d118e6ae66d4d3f009d91f (patch) | |
tree | b8338e1134d8bf56299a941cd87e4bcaeb23d483 /src | |
parent | 5ce2212a7245e7a8ee08af2dc662ad4c8e6e6e4b (diff) |
core: add unit specifier for configuration directory root
Follow-up for 14068e17f32a06e6a1f8f72416018bc653b8ea2d.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/unit-printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c index 92896d90be..046e937e92 100644 --- a/src/core/unit-printf.c +++ b/src/core/unit-printf.c @@ -227,6 +227,7 @@ int unit_full_printf(Unit *u, const char *format, char **ret) { * %S: the state directory root (e.g. /var/lib or $XDG_CONFIG_HOME) * %C: the cache directory root (e.g. /var/cache or $XDG_CACHE_HOME) * %L: the log directory root (e.g. /var/log or $XDG_CONFIG_HOME/log) + * %E: the configuration directory root (e.g. /etc or $XDG_CONFIG_HOME) * %T: the temporary directory (e.g. /tmp, or $TMPDIR, $TEMP, $TMP) * %V: the temporary directory for large, persistent stuff (e.g. /var/tmp, or $TMPDIR, $TEMP, $TMP) * @@ -259,6 +260,7 @@ int unit_full_printf(Unit *u, const char *format, char **ret) { { 'S', specifier_special_directory, UINT_TO_PTR(EXEC_DIRECTORY_STATE) }, { 'C', specifier_special_directory, UINT_TO_PTR(EXEC_DIRECTORY_CACHE) }, { 'L', specifier_special_directory, UINT_TO_PTR(EXEC_DIRECTORY_LOGS) }, + { 'E', specifier_special_directory, UINT_TO_PTR(EXEC_DIRECTORY_CONFIGURATION) }, { 'T', specifier_tmp_dir, NULL }, { 'V', specifier_var_tmp_dir, NULL }, |