Blame SOURCES/nfs-utils-1.3.0-nfsstat-retval.patch

64c563
diff -up nfs-utils-1.3.0/utils/nfsstat/nfsstat.c.orig nfs-utils-1.3.0/utils/nfsstat/nfsstat.c
64c563
--- nfs-utils-1.3.0/utils/nfsstat/nfsstat.c.orig	2014-03-25 11:12:07.000000000 -0400
64c563
+++ nfs-utils-1.3.0/utils/nfsstat/nfsstat.c	2017-03-29 12:10:52.820709442 -0400
64c563
@@ -348,7 +348,7 @@ main(int argc, char **argv)
64c563
 		switch (c) {
64c563
 		case 'a':
64c563
 			fprintf(stderr, "nfsstat: nfs acls are not yet supported.\n");
64c563
-			return -1;
64c563
+			return 1;
64c563
 		case 'c':
64c563
 			opt_clt = 1;
64c563
 			break;
64c563
@@ -410,7 +410,7 @@ main(int argc, char **argv)
64c563
 					"not yet supported\n");
64c563
 			return 2;
64c563
 		case 'm':
64c563
-			return mounts(MOUNTSFILE);
64c563
+			return ! mounts(MOUNTSFILE);
64c563
 		case '\1':
64c563
 			usage(progname);
64c563
 			return 0;
64c563
@@ -419,7 +419,7 @@ main(int argc, char **argv)
64c563
 			return 0;
64c563
 		default:
64c563
 			printf("Try `%s --help' for more information.\n", progname);
64c563
-			return -1;
64c563
+			return 1;
64c563
 		}
64c563
 	}
64c563