HomeFreeBSD

sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes

Description

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 65efb73fbddd44116fd39b03991386a67422ba6d)

Details

Provenance
freqlabsAuthored on Jan 27 2021, 7:27 PM
Reviewer
mav
Differential Revision
D28364: sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes
Parents
rG40cb0344eb27: release: set stable/13 to ALPHA3 as part of the 13.0 cycle
Branches
Unknown
Tags
Unknown