The location of locate database can change in /etc/locate.rc.
But the script of rebuilding locate database, 310.locate,
doesn't see the definition in /etc/locate.rc. The location of
locate database is hard coded in the script as "locdb=/var/db/locate.database".
So, when changed the location of locate database in /etc/locate.rc,
it failed to update the locate database.
How-To-Repeat: Change the "FCODES" in /etc/locate.rc from the default settings.
Then run the /etc/periodic/weekly/310.locate.
Followings works fine for me.
--- /usr/src/etc/periodic/weekly/310.locate 2011-02-26
+++ /etc/periodic/weekly/310.locate 2011-09-03 16:37:29.000000000 +0900
@@ -16,7 +16,12 @@
echo "Rebuilding locate database:"
+ . /etc/locate.rc
+ if [ 'x' = "x$FCODES" ]; then
touch $locdb && rc=0 || rc=3
chown nobody $locdb || rc=3
For the following conditions
Product: Base System, Documentation Status: New, Open, In Progress, UNCONFIRMED
Assignee: Former FreeBSD committer
Reset to default assignee. Reset status to "Open".