[Bug 261722] sysctlbyname() lost support for the user sub-tree
Date: Fri, 04 Feb 2022 20:50:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261722
Bug ID: 261722
Summary: sysctlbyname() lost support for the user sub-tree
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: se@FreeBSD.org
Created attachment 231560
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231560&action=edit
Patch that restores the lost functionality
The function sysctlbyname() lost support for the user sub-tree with commit
d05b53e0baee7.
The only utility in the base system that is affected is usr.bin/whereis, but
out-of-tree sources may also try to get user variables via this call.
Normal invocations of "whereis" pass in a sensible PATH environment variable
which takes precedence over the false return value of the sysctlbyname() call.
A patch that restores the lost functionality has been provided in review
D17282.
--
You are receiving this mail because:
You are the assignee for the bug.