1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

core/execute: escape the separator in exported paths

Our paths shouldn't even contain ":", but let's escape it if one somehow sneaks
in.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-24 13:07:51 +02:00
parent d4d9f034b1
commit 48904c8bfd

View File

@ -1927,7 +1927,7 @@ static int build_environment(
if (!pre) if (!pre)
return -ENOMEM; return -ENOMEM;
joined = strv_join_full(c->directories[t].paths, ":", pre, false); joined = strv_join_full(c->directories[t].paths, ":", pre, true);
if (!joined) if (!joined)
return -ENOMEM; return -ENOMEM;