]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kern_sysctl: make sysctl.debug work as intended
authorkaktus <kaktus@FreeBSD.org>
Mon, 6 Jan 2020 19:47:59 +0000 (19:47 +0000)
committerkaktus <kaktus@FreeBSD.org>
Mon, 6 Jan 2020 19:47:59 +0000 (19:47 +0000)
commit1d97ce15ed3ebd46311964b1a55ca6763e8fa2d7
tree41369383eaf096d104a1fbd09538fb979f2bbaf2
parente372ede74cd351dac7145ccb1664a76b340fe03c
kern_sysctl: make sysctl.debug work as intended

r136999 introduced SYSTCL_DEBUG but apparently "opt_sysctl.h" was never
included making the option ignored.

r322954 introduced sysctl.reuse_test with OID number equal to 0, effectively
shadowing the very special sysctl.debug one. Use OID_AUTO as it doesn't need
any special treatment.

Reviewed by: kib (mentor)
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D23056
sys/kern/kern_sysctl.c