Merge pull request #12870 from yuwata/tree-wide-further-path-join-cleanups
tree-wide: further path_join() and path_joina() cleanups
This commit is contained in:
@@ -6287,8 +6287,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. */
|
||||
|
||||
Reference in New Issue
Block a user