X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fswitch-root.c;fp=src%2Fshared%2Fswitch-root.c;h=813641ad44da59b7c0969c89adc192a40623aceb;hb=63c372cb9df3bee01e3bf8cd7f96f336bddda846;hp=e8cedc69cc023f0a4dc41ade35932ba9dbb295ba;hpb=44de0efc6e406515fc1cf8b95d9655d0d7f7ffff;p=elogind.git diff --git a/src/shared/switch-root.c b/src/shared/switch-root.c index e8cedc69c..813641ad4 100644 --- a/src/shared/switch-root.c +++ b/src/shared/switch-root.c @@ -51,7 +51,7 @@ int switch_root(const char *new_root, const char *oldroot, bool detach_oldroot, if (path_equal(new_root, "/")) return 0; - temporary_old_root = strappenda(new_root, oldroot); + temporary_old_root = strjoina(new_root, oldroot); mkdir_p_label(temporary_old_root, 0755); old_root_remove = in_initrd();