X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=ca9c801bab6f48abd0e7a3d5a9a2a0de058d0a4b;hp=a78ab266f6664fbf42b6a91998121e6d1713ede7;hb=51a4d2330b078dcd111d05e6c00753780b0e90a3;hpb=d54d1389284570b163f6aa12622d15c6b6ecea17 diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index a78ab26..ca9c801 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -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"),