ubase

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

commit e5b9f696267cc68be69757d8a04590e2abdb8719
parent 7569fd38058a112d1c96d8d7107acbcceba532c3
Author: sin <sin@2f30.org>
Date:   Sat, 15 Mar 2014 18:10:01 +0000

Print mnt_dir as well if umount2 fails.

Diffstat:
Mumount.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/umount.c b/umount.c @@ -51,7 +51,7 @@ main(int argc, char *argv[]) if (strcmp(me->mnt_type, "proc") == 0) continue; if (umount2(me->mnt_dir, flags) < 0) { - weprintf("umount2:"); + weprintf("umount2 %s:", me->mnt_dir); ret = EXIT_FAILURE; } } @@ -61,7 +61,7 @@ main(int argc, char *argv[]) for (i = 0; i < argc; i++) { if (umount2(argv[i], flags) < 0) { - weprintf("umount2:"); + weprintf("umount2 %s:", argv[i]); ret = EXIT_FAILURE; } }