1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

execute: use prefix_roota() where appropriate

This commit is contained in:
Lennart Poettering 2017-02-09 13:16:51 +01:00
parent 6732edab4e
commit 3b0e5bb524

View File

@ -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;