Page MenuHomeFreeBSD

sbin/sysctl: Always honor skip in sysctl_all
ClosedPublic

Authored by freqlabs on Dec 18 2020, 8:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 8, 5:46 PM
Unknown Object (File)
Sun, Mar 8, 1:15 PM
Unknown Object (File)
Sun, Mar 8, 12:31 AM
Unknown Object (File)
Feb 8 2026, 4:14 PM
Unknown Object (File)
Feb 8 2026, 10:07 AM
Unknown Object (File)
Jan 31 2026, 3:15 AM
Unknown Object (File)
Nov 27 2025, 4:39 PM
Unknown Object (File)
Nov 13 2025, 9:16 PM
Subscribers

Details

Summary

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
Sponsored by: iXsystems, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped