Date: Thu, 1 Dec 2011 15:01:23 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228181 - head/sbin/sysctl Message-ID: <201112011501.pB1F1NHX050261@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112011501.pB1F1NHX050261>