util: allow strappenda to take any number of args

This makes strappenda3 redundant, so we remove its usage and
definition. Add a few tests along the way for sanity.
This commit is contained in:
Dave Reisner
2014-08-13 20:41:41 -04:00
parent d06441da04
commit 8085f163c5
7 changed files with 32 additions and 28 deletions
+1 -1
View File
@@ -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. */