]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsumount.c
mount.nfs: teach [u]mount.nfs[4] to exit with EX_SUCCESS instead of 0
[nfs-utils.git] / utils / mount / nfsumount.c
index a78ab266f6664fbf42b6a91998121e6d1713ede7..ca9c801bab6f48abd0e7a3d5a9a2a0de058d0a4b 100644 (file)
@@ -209,7 +209,7 @@ static int do_nfs_umount(const char *spec, char *opts)
                return EX_USAGE;
        }
 
-       return 0;
+       return EX_SUCCESS;
 }
 
 static struct option umount_longopts[] =
@@ -305,7 +305,7 @@ int nfsumount(int argc, char *argv[])
                        /* umount might call us twice.  The second time there will
                         * be no entry in mtab and we should just exit quietly
                         */
-                       return 0;
+                       return EX_SUCCESS;
 
                only_root:
                        nfs_error(_("%s: You are not permitted to unmount %s"),