[hackers] [ubase] mount: support "noauto" in /etc/fstab || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 20 Feb 2015 16:36:38 +0100 (CET)

commit 43327506b697598bf565576f9f3a820cc87d79ed
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Feb 20 16:21:35 2015 +0100

    mount: support "noauto" in /etc/fstab

diff --git a/mount.c b/mount.c
index 2c51d18..11ac669 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -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;
Received on Fri Feb 20 2015 - 16:36:38 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 20 2015 - 16:48:12 CET