[hackers] [ubase] umount(8) should look in /etc/mtab || sin

From: <git_AT_suckless.org>
Date: Wed, 12 Mar 2014 15:39:57 +0100

commit bea831d2e6356833dc8990d97db974526a007018
Author: sin <sin_AT_2f30.org>
Date: Wed Mar 12 16:33:04 2014 +0200

    umount(8) should look in /etc/mtab

diff --git a/umount.c b/umount.c
index 2b0c32e..d04410a 100644
--- a/umount.c
+++ b/umount.c
_AT_@ -43,9 +43,9 @@ main(int argc, char *argv[])
                 usage();
 
         if (aflag == 1) {
- fp = setmntent("/etc/fstab", "r");
+ fp = setmntent("/etc/mtab", "r");
                 if (!fp)
- eprintf("setmntent %s:", "/etc/fstab");
+ eprintf("setmntent %s:", "/etc/mtab");
                 while ((me = getmntent(fp))) {
                         if (umount2(me->mnt_dir, flags) < 0) {
                                 weprintf("umount2:");
Received on Wed Mar 12 2014 - 15:39:57 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 12 2014 - 15:48:25 CET