From bea831d2e6356833dc8990d97db974526a007018 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 12 Mar 2014 16:33:04 +0200 Subject: [PATCH] umount(8) should look in /etc/mtab --- umount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:");