X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=36db652316a0120b41281d2dfc0785491003a83b;hb=8085f163c50d998f3e30a6ddfc72c73d5dc57747;hp=540b4a64c1f5077f7c5364fb2bb37f5419ec4d97;hpb=d06441da04cd5102816858d8d1e4aa367c00156b;p=elogind.git diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 540b4a64c..36db65231 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4827,7 +4827,7 @@ static int switch_root(sd_bus *bus, char **args) { const char *root_systemd_path = NULL, *root_init_path = NULL; root_systemd_path = strappenda(root, "/" SYSTEMD_BINARY_PATH); - root_init_path = strappenda3(root, "/", init); + root_init_path = strappenda(root, "/", init); /* If the passed init is actually the same as the * systemd binary, then let's suppress it. */