You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
870 B

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