[hackers] [ubase] Only complain for a missing /etc/fstab || sin

From: <git_AT_suckless.org>
Date: Sat, 15 Mar 2014 20:30:50 +0100

commit df9e43884314a8dc5f15cb8c5bc8ae13d58dd10c
Author: sin <sin_AT_2f30.org>
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
_AT_@ -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)
Received on Sat Mar 15 2014 - 20:30:50 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 15 2014 - 20:36:34 CET