commit bea831d2e6356833dc8990d97db974526a007018
Author: sin <[email protected]>
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
@@ -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:");