Page MenuHomeFreeBSD

sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes
ClosedPublic

Authored by freqlabs on Jan 26 2021, 8:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 14, 9:17 PM
Unknown Object (File)
Dec 12 2024, 12:46 AM
Unknown Object (File)
Dec 6 2024, 6:38 AM
Unknown Object (File)
Nov 21 2024, 3:59 PM
Unknown Object (File)
Nov 5 2024, 3:21 AM
Unknown Object (File)
Oct 22 2024, 1:40 PM
Unknown Object (File)
Oct 3 2024, 3:27 AM
Unknown Object (File)
Oct 1 2024, 3:47 PM
Subscribers
None

Details

Summary

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 reset on is also CTLFLAG_SKIP was not accounted for.

Reported by: mav
Sponsored by: iXsystems, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable