]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: Actually use the resolved path for TemporaryFileSystem= (#9385)
authorYmrDtnJu <YmrDtnJu@users.noreply.github.com>
Fri, 22 Jun 2018 23:17:07 +0000 (23:17 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Jun 2018 23:17:07 +0000 (08:17 +0900)
The code already resolves specifiers using unit_full_printf() but then uses the
unresolved version again for temporary_filesystem_add().

src/core/load-fragment.c

index d9a5094aa09958e7e3e04e4094c723cfb57477f5..fa3605294bf86916797c69f04c16c437d3503b79 100644 (file)
@@ -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) {