From df9e43884314a8dc5f15cb8c5bc8ae13d58dd10c Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 15 Mar 2014 19:25:27 +0000 Subject: [PATCH] Only complain for a missing /etc/fstab Avoids complaining for /proc/mounts while mounting procfs. --- mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mount.c b/mount.c index 0f6bdc5..605fca9 100644 --- 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)