summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-10-19 18:41:23 +0000
committerdg <dg@FreeBSD.org>1997-10-19 18:41:23 +0000
commitc9410919df97dfb4ee4ed7acde476f997d36b2ea (patch)
tree72f9cb7e1f5d518aaa6621a0b8de7b27fd466d15 /usr.sbin/pstat
parent54b3846b38e6e27bf73f77d2e6f05fbedd5363cf (diff)
downloadFreeBSD-src-c9410919df97dfb4ee4ed7acde476f997d36b2ea.zip
FreeBSD-src-c9410919df97dfb4ee4ed7acde476f997d36b2ea.tar.gz
"Fixed" pstat -T by avoiding the vnode stats. Disabled pstat -v since
we no longer support that sysctl (in my opinion, pstat -v is a security hole in any case).
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 83b6d21..3cc6f25 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: pstat.c,v 1.31 1997/10/09 07:22:08 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -294,8 +294,12 @@ main(argc, argv)
break;
case 'v':
case 'i': /* Backward compatibility. */
+ fprintf(stderr, "vnode mode not supported\n");
+ exit(1);
+#if 0
vnodeflag = 1;
break;
+#endif
default:
usage();
}
@@ -326,7 +330,7 @@ main(argc, argv)
usage();
if (fileflag || totalflag)
filemode();
- if (vnodeflag || totalflag)
+ if (vnodeflag)
vnodemode();
if (ttyflag)
ttymode();
OpenPOWER on IntegriCloud