From: Yu Watanabe Date: Thu, 30 Nov 2017 11:34:58 +0000 (+0900) Subject: core/dbus-execute: actually set PassEnvironment= (#7510) X-Git-Tag: v236~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d4f242a5322cd055201b8f7d127db77870b5b2e;p=thirdparty%2Fsystemd.git core/dbus-execute: actually set PassEnvironment= (#7510) Follow-up for #7444. --- diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 14fb46ec59a..197c1c32063 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -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)