summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-09 02:46:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-09 02:46:05 +0000
commit5c6b74ed9d8580fb53c6ba10389d6499635c28aa (patch)
tree7ff3cccfdb3e4b39f0bc16ec4b99216ca74f2f40 /sbin
parentfafafbcd0e00986b2bc9dc18845676d5aaa89d8b (diff)
Tell the user to run ps if they try to view things under KERN_PROC2
(same handling as KERN_PROC).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysctl/sysctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index c8c44cb0a57..8d6b3eb0a2f 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.101 2004/01/05 15:26:18 markus Exp $ */
+/* $OpenBSD: sysctl.c,v 1.102 2004/01/09 02:46:04 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.101 2004/01/05 15:26:18 markus Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.102 2004/01/09 02:46:04 millert Exp $";
#endif
#endif /* not lint */
@@ -395,6 +395,7 @@ parse(char *string, int flags)
warnx("use pstat to view %s information", string);
return;
case KERN_PROC:
+ case KERN_PROC2:
if (flags == 0)
return;
warnx("use ps to view %s information", string);