From: Lennart Poettering Date: Sat, 10 Apr 2010 02:51:14 +0000 (+0200) Subject: mount-setup: create full paths when mounting X-Git-Tag: v1~577 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=11857f8daf5a6336865844dedff365f9fa22c8f4;hp=2c696a96a2bd63d2ff0d5595622124ef9270b172;p=elogind.git mount-setup: create full paths when mounting --- diff --git a/mount-setup.c b/mount-setup.c index a0eb75ca6..f3041941a 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],