diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-09 13:16:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-09 13:18:35 +0100 |
commit | 3b0e5bb524e3274e61aced08f72907d96eaeedaa (patch) | |
tree | 8821314cf55304673d0e3be17e8d764ef7b60dc4 /src/core | |
parent | 6732edab4eff2f656690681bc37595a59470e4a1 (diff) |
execute: use prefix_roota() where appropriate
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 492df2fedb..be03695776 100644 --- 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; |