freebsd-src/sbin/sysctl
Ryan Moeller 5d58f58b0d sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes
The OID is saved when we encounter CTLFLAG_SKIP so that descendants can
be skipped as well. We then must not update the skip OID until we are
out of the node. This was achieved by resetting the skip OID once the
prefix no longer matches, but the case where the OID we reset on has
CTLFLAG_SKIP was not accounted for.

Reported by:	mav
Reviewed by:	mav
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D28364

(cherry picked from commit 65efb73fbd)
2021-01-28 19:36:46 -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: Fix CTLFLAG_SKIP for adjacent nodes 2021-01-28 19:36:46 -05:00
sysctl.conf Move sysctl.conf to sbin/sysctl/ and switch to CONFS. 2018-08-11 13:28:03 +00:00