projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d9f03
)
core/execute: escape the separator in exported paths
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 24 Sep 2020 11:07:51 +0000
(13:07 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 25 Sep 2020 11:36:34 +0000
(13:36 +0200)
Our paths shouldn't even contain ":", but let's escape it if one somehow sneaks
in.
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index d5a464d6f6ba58c952bb67ac887c2f47b37b99dc..ac19fc0a68e555b4ae59d89aba61a4631484e9ac 100644
(file)
--- 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,
fals
e);
+ joined = strv_join_full(c->directories[t].paths, ":", pre,
tru
e);
if (!joined)
return -ENOMEM;