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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user