mirror of
https://github.com/troglobit/finit.git
synced 2026-11-14 19:03:16 +00:00
Merge pull request #470 from aanderse/master
This commit is contained in:
1 file changed
+4
@@ -523,6 +523,10 @@ static void fs_init(void)
|
||||
if (fismnt(fs[i].file))
|
||||
continue;
|
||||
|
||||
/* Create mount point if it doesn't exist */
|
||||
if (mkdir(fs[i].file, 0755) && errno != EEXIST)
|
||||
warn("Failed creating mountpoint %s: %s", fs[i].file, strerror(errno));
|
||||
|
||||
fs_mount(fs[i].spec, fs[i].file, fs[i].type, 0, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user