From 3b0e5bb524e3274e61aced08f72907d96eaeedaa Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 9 Feb 2017 13:16:51 +0100 Subject: execute: use prefix_roota() where appropriate --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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; -- cgit v1.2.3-54-g00ecf