summaryrefslogtreecommitdiff
path: root/mount-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-10 04:51:14 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-10 18:00:21 +0200
commit11857f8daf5a6336865844dedff365f9fa22c8f4 (patch)
treec63cbbcfb30eebc293d6d94fbd4d1cacb0081c40 /mount-setup.c
parent2c696a96a2bd63d2ff0d5595622124ef9270b172 (diff)
mount-setup: create full paths when mounting
Diffstat (limited to 'mount-setup.c')
-rw-r--r--mount-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount-setup.c b/mount-setup.c
index a0eb75ca6a..f3041941ac 100644
--- a/mount-setup.c
+++ b/mount-setup.c
@@ -90,7 +90,7 @@ static int mount_one(const char *t[]) {
/* The access mode here doesn't really matter too much, since
* the mounted file system will take precedence anyway. */
- mkdir(t[MOUNT_WHERE], 0755);
+ mkdir_p(t[MOUNT_WHERE], 0755);
log_debug("Mounting %s to %s of type %s with options %s.",
t[MOUNT_WHAT],