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:
parent
6732edab4e
commit
3b0e5bb524
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user