From: Lennart Poettering Date: Sat, 10 Apr 2010 02:51:14 +0000 (+0200) Subject: mount-setup: create full paths when mounting X-Git-Tag: 0.git+20100605+dfd8ee-1~180 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11857f8daf5a6336865844dedff365f9fa22c8f4;p=systemd mount-setup: create full paths when mounting --- diff --git a/mount-setup.c b/mount-setup.c index a0eb75ca..f3041941 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],