Re: 15.0-ALPHA1: _localbase not set in /usr/sbin/periodic

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Wed, 17 Sep 2025 16:55:43 UTC
"J.R. Oldroyd" <fbsd@opal.com> writes:
> Commit c8b89c11a1181e900acb638cfde7a55e92553175 removes the initialization
> of $_localbase in /usr/sbin/periodic.
>
> This causes $dirlist to be set to:
> 	 " /etc/periodic /etc/periodic"
> and that causes all scripts in /etc/periodic to be executed twice per
> security run (the security run emails show everything happening twice).
> $dirlist should be:
> 	" /etc/periodic /usr/local/etc/periodic"
>
> Need to partially revert that commit to re-add the initialization of
> $_localbase.

The change in question is effectively a nop.  It does not remove the
initialization of _localbase as you claim; it moves it from one place
(/usr/sbin/periodic) to another (/etc/defaults/periodic.conf).  The
former reads the latter just a few lines below where it previously used
to initialize _localbase.  Did you forget to run etcupdate?

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org