svn commit: r228181 - head/sbin/sysctl
John Baldwin
jhb at FreeBSD.org
Thu Dec 1 15:01:24 UTC 2011
Author: jhb
Date: Thu Dec 1 15:01:23 2011
New Revision: 228181
URL: http://svn.freebsd.org/changeset/base/228181
Log:
If the -d flag is specified, ignore any new values specified and only
display the descriptions of specified nodes.
Reported by: Jason Hellenthal jhell of dataix net
MFC after: 2 weeks
Modified:
head/sbin/sysctl/sysctl.c
Modified: head/sbin/sysctl/sysctl.c
==============================================================================
--- head/sbin/sysctl/sysctl.c Thu Dec 1 13:53:33 2011 (r228180)
+++ head/sbin/sysctl/sysctl.c Thu Dec 1 15:01:23 2011 (r228181)
@@ -201,7 +201,7 @@ parse(char *string)
if (oidfmt(mib, len, fmt, &kind))
err(1, "couldn't find format of oid '%s'", bufp);
- if (newval == NULL) {
+ if (newval == NULL || dflag) {
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
if (dflag) {
i = show_var(mib, len);
More information about the svn-src-all
mailing list