diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-29 11:25:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-29 11:39:15 +0200 |
commit | b294e5943f06bc96e2898e769cfe610bbf10b767 (patch) | |
tree | e6b7188d1af3b78d88a5ca6d60849cddf7bf5a93 /src/sysusers | |
parent | man: sort specifier list in systemd.unit(5) alphabetically (diff) | |
download | systemd-b294e5943f06bc96e2898e769cfe610bbf10b767.tar.xz systemd-b294e5943f06bc96e2898e769cfe610bbf10b767.zip |
core: introduce specifiers for /tmp and /var/tmp
This corresponds nicely with the specifiers we already pass for
/var/lib, /var/cache, /run and so on.
This is particular useful to update the test-path service files to
operate without guessable files, thus allowing multiple parallel
test-path invocations to pass without issues (the idea is to set $TMPDIR
early on in the test to some private directory, and then only use the
new %T or %V specifier to refer to it).
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/sysusers.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index af041d2f74..b521200346 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -1359,10 +1359,12 @@ static bool item_equal(Item *a, Item *b) { static int parse_line(const char *fname, unsigned line, const char *buffer) { static const Specifier specifier_table[] = { - { 'm', specifier_machine_id, NULL }, - { 'b', specifier_boot_id, NULL }, - { 'H', specifier_host_name, NULL }, + { 'm', specifier_machine_id, NULL }, + { 'b', specifier_boot_id, NULL }, + { 'H', specifier_host_name, NULL }, { 'v', specifier_kernel_release, NULL }, + { 'T', specifier_tmp_dir, NULL }, + { 'V', specifier_var_tmp_dir, NULL }, {} }; |