The branch main has been updated by wosch:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8019068d7c30e45ad392669a6577e5f1db56421d

commit 8019068d7c30e45ad392669a6577e5f1db56421d
Author:     Wolfram Schneider <wo...@freebsd.org>
AuthorDate: 2021-10-26 14:59:39 +0000
Commit:     Wolfram Schneider <wo...@freebsd.org>
CommitDate: 2021-10-26 14:59:39 +0000

    /etc/periodic/weekly/310.locate must read /etc/locate.rc
    
    PR:             160225
    Reported by:    Hiroaki Abe
    Reviewed by:    se
    Approved by:    se
    Differential Revision: https://reviews.freebsd.org/D32646
---
 usr.sbin/periodic/etc/weekly/310.locate | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/periodic/etc/weekly/310.locate 
b/usr.sbin/periodic/etc/weekly/310.locate
index 4079f5e8287e..b7481965444a 100755
--- a/usr.sbin/periodic/etc/weekly/310.locate
+++ b/usr.sbin/periodic/etc/weekly/310.locate
@@ -16,7 +16,9 @@ case "$weekly_locate_enable" in
        echo ""
        echo "Rebuilding locate database:"
 
-       locdb=/var/db/locate.database
+        . /etc/locate.rc
+       : ${FCODES:="/var/db/locate.database"}
+        locdb="$FCODES"
 
        touch $locdb && rc=0 || rc=3
        chown nobody $locdb || rc=3

Reply via email to