Introduction
Introduction Statistics Contact Development Disclaimer Help
mount: support "noauto" in /etc/fstab - ubase - suckless linux base utils
git clone git://git.suckless.org/ubase
Log
Files
Refs
README
LICENSE
---
commit 43327506b697598bf565576f9f3a820cc87d79ed
parent 710081b07abac0f2f8c9a5502e93c24384b98959
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.