X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=mount-setup.c;h=f3041941ac4326d070b1325a6a159c9f7da83cb2;hp=a0eb75ca6a14d6954c03c66d3669bd7b400b9551;hb=b9f49ee478fdc06c45092f208f1dddd23680ab13;hpb=c9af1080bc318f89238ff7fbe03134c25169a1bc 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],