From 880305fe1659ab289a917c7627aa014343f46bc9 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 16 Mar 2007 16:46:27 +1100 Subject: [PATCH] Return correct exit status for umount.nfs. nfsumount() returns 1 for success and 0 for failure. Take proper account of this when producing an exit status. --- utils/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 6717941..639ff4b 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -295,7 +295,7 @@ int main(int argc, char *argv[]) umount_usage(); exit(1); } - return(nfsumount(argc, argv)); + exit(nfsumount(argc, argv) ? 0 : 1); } if ((argc < 2)) { -- 2.39.5