Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2012 18:38:14 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229615 - stable/9/sbin/sysctl
Message-ID:  <201201051838.q05IcEVq049321@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201051838.q05IcEVq049321>