"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).
This commit is contained in:
David Greenman 1997-10-19 18:41:23 +00:00
parent d88dbcf043
commit c49424985a
1 changed files with 6 additions and 2 deletions

View File

@ -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();