mount: support "noauto" in /etc/fstab - ubase - suckless linux base utils
(HTM) git clone git://git.suckless.org/ubase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 43327506b697598bf565576f9f3a820cc87d79ed
(DIR) parent 710081b07abac0f2f8c9a5502e93c24384b98959
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 20 Feb 2015 16:21:35 +0100
mount: support "noauto" in /etc/fstab
Diffstat:
M mount.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/mount.c b/mount.c
@@ -225,6 +225,8 @@ mountall:
if (!(fp = setmntent("/etc/fstab", "r")))
eprintf("setmntent %s:", "/etc/fstab");
while ((me = getmntent(fp))) {
+ if (hasmntopt(me, MNTOPT_NOAUTO))
+ continue;
/* already mounted, skip */
if (mounted(me->mnt_dir))
continue;