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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to