ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit bea831d2e6356833dc8990d97db974526a007018
parent 552a5ae4b502c373ae516e16a8a756e659e7c7bb
Author: sin <sin@2f30.org>
Date:   Wed Mar 12 16:33:04 +0200

umount(8) should look in /etc/mtab

Diffstat:
umount.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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:");