From: Neil Brown Date: Fri, 16 Mar 2007 05:46:27 +0000 (+1100) Subject: Return correct exit status for umount.nfs. X-Git-Tag: nfs-utils-1-1-0-rc1~63 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=880305fe1659ab289a917c7627aa014343f46bc9;p=nfs-utils.git 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. --- 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)) {