From 48904c8bfd4b71086630a35f56a977183bd6d208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 24 Sep 2020 13:07:51 +0200 Subject: [PATCH] core/execute: escape the separator in exported paths Our paths shouldn't even contain ":", but let's escape it if one somehow sneaks in. --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3