From: Zbigniew Jędrzejewski-Szmek Date: Thu, 24 Sep 2020 11:07:51 +0000 (+0200) Subject: core/execute: escape the separator in exported paths X-Git-Tag: v247-rc1~138^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48904c8bfd4b71086630a35f56a977183bd6d208;p=thirdparty%2Fsystemd.git core/execute: escape the separator in exported paths Our paths shouldn't even contain ":", but let's escape it if one somehow sneaks in. --- diff --git a/src/core/execute.c b/src/core/execute.c index d5a464d6f6b..ac19fc0a68e 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1927,7 +1927,7 @@ static int build_environment( if (!pre) return -ENOMEM; - joined = strv_join_full(c->directories[t].paths, ":", pre, false); + joined = strv_join_full(c->directories[t].paths, ":", pre, true); if (!joined) return -ENOMEM;