1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

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().
This commit is contained in:
YmrDtnJu 2018-06-22 23:17:07 +00:00 committed by Yu Watanabe
parent 25612ecba4
commit a26fec2408

View 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) {