Bug 23284

Summary: locate database does not get rebuilt
Product: Base System Reporter: malachai <malachai>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description malachai 2000-12-04 22:20:00 UTC
Something has changed in /usr/src/usr.bin/locate/locate/updatedb.sh
that causes the weekly building of the locate database to fail.  By
removing the '-s' switch to the find command, I'm able to get it to
work.  AFAIK, it's been like this for a while but this is the first
(small) look I've taken at why it was failing.  Unfortunately, the CVS
repo shows that this file hasn't been touched in 10 months.  Maybe the
problem is actually with 'find'?

Fix: 

Workaround:  Remove '-s' from the find command in
	/usr/libexec/locate.updatedb .
How-To-Repeat: 
	Run 'periodic weekly'.
	Note that the resulting /var/db/locate.database is very small.
Comment 1 kkonstan 2001-06-14 21:36:15 UTC
Hello,

It appears that this is no longer the case, I
ran /etc/periodic/weekly/310.locate numerous
times on a few hosts of mine and i'm quite
confident that the locatedb is complete.

This PR can be closed

--kkonstan
Comment 2 Doug Barton freebsd_committer freebsd_triage 2001-06-15 05:42:52 UTC
State Changed
From-To: open->closed


What's likely to have changed is something on your local system. The -s 
option to find could not possibly be the culprit. 

If you are still having trouble, please send some more details to 
freebsd-questions@freebsd.org.