summaryrefslogtreecommitdiff
path: root/src/core/switch-root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/switch-root.c')
-rw-r--r--src/core/switch-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/switch-root.c b/src/core/switch-root.c
index f508cc2030..0ea61dbb29 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) {