pkg.c revision 367687 breaks pkg

Stefan Esser se at freebsd.org
Sun Nov 15 20:05:33 UTC 2020


Am 15.11.20 um 20:41 schrieb Kyle Evans:
> This is a separate (valid) problem, but not directly related to
> Scott's work here. sysctlbyname now goes directly to the kernel with
> no chance for the user.* sysctls to intercept. That should
> independently be fixed to maintain the illusion that they're real
> sysctl's.

user.localbase is a real sysctl, but with a default value returned
when sysctl(3) is used.

The getlocalbase() function should not depend on this default value,
since it contains an identicl default value that can be returned if
sysctlbyname fails (or rather returns a zero length string in case
no other value has been written to the kernel).

Regards, STefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20201115/1f4ec9ef/attachment.sig>


More information about the freebsd-current mailing list