Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Feb 2022 20:50:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261722] sysctlbyname() lost support for the user sub-tree
Message-ID:  <bug-261722-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261722-227>