projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6732eda
)
execute: use prefix_roota() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Thu, 9 Feb 2017 12:16:51 +0000
(13:16 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 9 Feb 2017 12:18:35 +0000
(13:18 +0100)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 492df2fedba6b8596c0b3fb2cac3acd207fe3329..be036957762c113e1fdea68461b9fe5641cf9167 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-2040,7
+2040,7
@@
static int apply_working_directory(
d = wd;
} else
- d =
strjoina(strempty(context->root_directory), "/", strempty(wd)
);
+ d =
prefix_roota(context->root_directory, wd
);
if (chdir(d) < 0 && !context->working_directory_missing_ok)
return -errno;