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

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