svn commit: r229615 - stable/9/sbin/sysctl
John Baldwin
jhb at FreeBSD.org
Thu Jan 5 18:38:14 UTC 2012
Author: jhb
Date: Thu Jan 5 18:38:13 2012
New Revision: 229615
URL: http://svn.freebsd.org/changeset/base/229615
Log:
MFC 228181:
If the -d flag is specified, ignore any new values specified and only
display the descriptions of specified nodes.
Modified:
stable/9/sbin/sysctl/sysctl.c
Directory Properties:
stable/9/sbin/sysctl/ (props changed)
Modified: stable/9/sbin/sysctl/sysctl.c
==============================================================================
--- stable/9/sbin/sysctl/sysctl.c Thu Jan 5 18:35:49 2012 (r229614)
+++ stable/9/sbin/sysctl/sysctl.c Thu Jan 5 18:38:13 2012 (r229615)
@@ -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-stable-9
mailing list