mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
core/dbus-execute: actually set PassEnvironment= (#7510)
Follow-up for #7444.
This commit is contained in:
parent
606df9a5a5
commit
9d4f242a53
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user