]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sysctl+kern_sysctl: Honor SKIP for descendant nodes
authorRyan Moeller <freqlabs@FreeBSD.org>
Sat, 24 Oct 2020 16:17:07 +0000 (16:17 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Sat, 24 Oct 2020 16:17:07 +0000 (16:17 +0000)
commite58483c4fb697652a8e19c6cdc55a06d3af7e5d8
tree1057778e8a8e900cce2c9bf080c9d293eddfccbf
parent3767427354a55c727bafe982e8f3e9c1c803bd63
sysctl+kern_sysctl: Honor SKIP for descendant nodes

Ensure we also skip descendants of SKIP nodes when iterating through children
of an explicitly specified node.

Reported by: np
Reviewed by: np
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D26833
sbin/sysctl/sysctl.c
sys/kern/kern_sysctl.c