diff options
| author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-25 00:24:23 +0900 |
|---|---|---|
| committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-25 01:31:26 +0900 |
| commit | 270384b2d494bd1f53242c923f875ccfdf6e214d (patch) | |
| tree | 66b619dc3c5e218b9ac87b5034d807a78fda5cb7 /src/systemctl/systemctl.c | |
| parent | 2d9b74ba87a3fef313f362460d5d9a4283548ff6 (diff) | |
| download | systemd-270384b2d494bd1f53242c923f875ccfdf6e214d.tar.gz | |
tree-wide: replace strjoina() with prefix_roota()
Diffstat (limited to 'src/systemctl/systemctl.c')
| -rw-r--r-- | src/systemctl/systemctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 31bc776449..8b02ead39b 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6277,8 +6277,8 @@ static int switch_root(int argc, char *argv[], void *userdata) { if (init) { const char *root_systemd_path = NULL, *root_init_path = NULL; - root_systemd_path = strjoina(root, "/" SYSTEMD_BINARY_PATH); - root_init_path = strjoina(root, "/", init); + root_systemd_path = prefix_roota(root, "/" SYSTEMD_BINARY_PATH); + root_init_path = prefix_roota(root, init); /* If the passed init is actually the same as the * systemd binary, then let's suppress it. */ |
