From a9819b290848e0a760f3805d5937fa050235d707 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Fri, 22 Dec 2000 01:48:07 +0000 Subject: Use busybox error handling functions wherever possible. --- umount.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'umount.c') diff --git a/umount.c b/umount.c index e76e0521f..0867118c0 100644 --- a/umount.c +++ b/umount.c @@ -216,7 +216,7 @@ static int umount_all(int useMtab) if (status != 0) { /* Don't bother retrying the umount on busy devices */ if (errno == EBUSY) { - perror(mountpt); + perror_msg("%s", mountpt); continue; } status = do_umount(mountpt, useMtab); @@ -280,7 +280,6 @@ extern int umount_main(int argc, char **argv) } if (do_umount(*argv, useMtab) == TRUE) return EXIT_SUCCESS; - perror("umount"); - return EXIT_FAILURE; + perror_msg_and_die("%s", *argv); } -- cgit v1.2.3