commit df9e43884314a8dc5f15cb8c5bc8ae13d58dd10c
Author: sin <[email protected]>
Date: Sat Mar 15 19:25:27 2014 +0000
Only complain for a missing /etc/fstab
Avoids complaining for /proc/mounts while mounting procfs.
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)