diff options
author | dg <dg@FreeBSD.org> | 1997-10-19 18:41:23 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-10-19 18:41:23 +0000 |
commit | c9410919df97dfb4ee4ed7acde476f997d36b2ea (patch) | |
tree | 72f9cb7e1f5d518aaa6621a0b8de7b27fd466d15 /usr.sbin/pstat | |
parent | 54b3846b38e6e27bf73f77d2e6f05fbedd5363cf (diff) | |
download | FreeBSD-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.c | 8 |
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(); |