summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-25 00:24:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-25 01:31:26 +0900
commit270384b2d494bd1f53242c923f875ccfdf6e214d (patch)
tree66b619dc3c5e218b9ac87b5034d807a78fda5cb7 /src/systemctl/systemctl.c
parent2d9b74ba87a3fef313f362460d5d9a4283548ff6 (diff)
downloadsystemd-270384b2d494bd1f53242c923f875ccfdf6e214d.tar.gz
tree-wide: replace strjoina() with prefix_roota()
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c4
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. */