X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fswitch-root.c;h=0ea61dbb290f8413fba8cc0f28990bde4ca76966;hb=5caeb7d6854e02321e0e00588e17412b161ef176;hp=f508cc203006273d2a086b91750cdecc4284fdd1;hpb=23f25b1496c31ef4c20b8f3ee8328f7b1d5f3a54;p=elogind.git diff --git a/src/core/switch-root.c b/src/core/switch-root.c index f508cc203..0ea61dbb2 100644 --- a/src/core/switch-root.c +++ b/src/core/switch-root.c @@ -84,7 +84,7 @@ int switch_root(const char *new_root) { snprintf(new_mount, sizeof(new_mount), "%s%s", new_root, i); char_array_0(new_mount); - mkdir_parents(new_mount, 0755); + mkdir_p(new_mount, 0755); if ((stat(new_mount, &sb) < 0) || sb.st_dev != new_root_stat.st_dev) {