freebsd-nq/sbin/sysctl
Ryan Moeller a5ec1dd453 sbin/sysctl: Always honor skip in sysctl_all
Fix broken CTLFLAG_SKIP when present on the first child of the requested
node.

We don't need to ignore skip for the first node because in sysctl_all()
we've implicitly visited the first node already when oid is specified.
The first call to show_var() in here is after we have iterated to the
next node. When the command line specifically requests a non-node sysctl
we go straight into show_var() without calling sysctl_all().

Reported by:	jhb
Reviewed by:	jhb
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D27674
2020-12-23 12:42:38 -05:00
..
Makefile Move sysctl.conf to sbin/sysctl/ and switch to CONFS. 2018-08-11 13:28:03 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sysctl.8 Update man-pages to describe the user.localbase variable added in r367179. 2020-10-30 19:37:53 +00:00
sysctl.c sbin/sysctl: Always honor skip in sysctl_all 2020-12-23 12:42:38 -05:00
sysctl.conf Move sysctl.conf to sbin/sysctl/ and switch to CONFS. 2018-08-11 13:28:03 +00:00