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