"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:
parent
d88dbcf043
commit
c49424985a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user