From: YmrDtnJu Date: Fri, 22 Jun 2018 23:17:07 +0000 (+0000) Subject: core: Actually use the resolved path for TemporaryFileSystem= (#9385) X-Git-Tag: v240~1064 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a26fec240862c7bc466f468490bae2395f263708;p=thirdparty%2Fsystemd.git core: Actually use the resolved path for TemporaryFileSystem= (#9385) The code already resolves specifiers using unit_full_printf() but then uses the unresolved version again for temporary_filesystem_add(). --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index d9a5094aa09..fa3605294bf 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -3904,7 +3904,7 @@ int config_parse_temporary_filesystems( if (r < 0) continue; - r = temporary_filesystem_add(&c->temporary_filesystems, &c->n_temporary_filesystems, path, w); + r = temporary_filesystem_add(&c->temporary_filesystems, &c->n_temporary_filesystems, resolved, w); if (r == -ENOMEM) return log_oom(); if (r < 0) {