core/dbus-execute: actually set PassEnvironment= (#7510)

Follow-up for #7444.
This commit is contained in:
Yu Watanabe 2017-11-30 20:34:58 +09:00 committed by Lennart Poettering
parent 606df9a5a5
commit 9d4f242a53
1 changed files with 4 additions and 0 deletions

View File

@ -2274,6 +2274,10 @@ int bus_exec_context_set_transient_property(
} else {
_cleanup_free_ char *joined = NULL;
r = strv_extend_strv(&c->pass_environment, l, true);
if (r < 0)
return r;
/* We write just the new settings out to file, with unresolved specifiers. */
joined = unit_concat_strv(l, UNIT_ESCAPE_SPECIFIERS);
if (!joined)