ubase

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

commit df9e43884314a8dc5f15cb8c5bc8ae13d58dd10c
parent 023c8e0414c281a2569b34ace267224b55c6a00e
Author: sin <sin@2f30.org>
Date:   Sat, 15 Mar 2014 19:25:27 +0000

Only complain for a missing /etc/fstab

Avoids complaining for /proc/mounts while mounting procfs.

Diffstat:
Mmount.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mount.c b/mount.c @@ -148,7 +148,8 @@ main(int argc, char *argv[]) endmntent(fp); fp = NULL; } else { - weprintf("setmntent %s:", files[i]); + if (strcmp(files[i], "/proc/mounts") != 0) + weprintf("setmntent %s:", files[i]); } } if(!source)