ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 9bc4fb44bbfb38bf1a53e5a47801e66a515e63e9
parent 0c3436161f4407b7c07ca062cba9a83ebd9c9e55
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri Feb 20 16:21:35 +0100

mount: support "noauto" in /etc/fstab

Diffstat:
mount.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
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;