From: Lennart Poettering Date: Tue, 6 Apr 2010 19:55:58 +0000 (+0200) Subject: mount-setup: create mount points if not existing yet X-Git-Tag: v1~646 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a04f58d6cb678a574e85a26c453aeb6c7884bb93;hp=055ba4d60e9539d5ec7cc66cc7a7ea3c0ce93679 mount-setup: create mount points if not existing yet --- diff --git a/mount-setup.c b/mount-setup.c index 12605ebb4..c6a471237 100644 --- a/mount-setup.c +++ b/mount-setup.c @@ -85,6 +85,10 @@ static int mount_one(const char *t[]) { if (r > 0) return 0; + /* The access mode here doesn't really matter too much, since + * the mounted file system will take precedence anyway. */ + mkdir(t[MOUNT_WHERE], 0755); + log_debug("Mounting %s to %s of type %s with options %s.", t[MOUNT_WHAT], t[MOUNT_WHERE],