From malachai@iname.com  Mon Dec  4 14:17:30 2000
Return-Path: <malachai@iname.com>
Received: from zeus.lpa.com (mail.lpa.com [12.3.233.134])
	by hub.freebsd.org (Postfix) with ESMTP id 54F0437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Dec 2000 14:17:30 -0800 (PST)
Received: from xelus.com ([10.4.5.232]) by zeus.lpa.com
          (Netscape Messaging Server 4.15) with ESMTP id G52DVT00.B2X for
          <FreeBSD-gnats-submit@freebsd.org>; Mon, 4 Dec 2000 17:16:41 -0500 
Message-Id: <20001204171716.A70636@nightrain.xelus.com>
Date: Mon, 4 Dec 2000 17:17:16 -0500
From: Shawn Halpenny <malachai@iname.com>
Reply-To: Shawn Halpenny <malachai@iname.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: locate database does not get rebuilt
X-Send-Pr-Version: 3.2

>Number:         23284
>Category:       misc
>Synopsis:       locate database does not get rebuilt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 04 14:20:00 PST 2000
>Closed-Date:    Thu Jun 14 21:42:52 PDT 2001
>Last-Modified:  Thu Jun 14 21:44:28 PDT 2001
>Originator:     Shawn Halpenny
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

FreeBSD nightrain.xelus.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Thu Nov 30 14:50:13 EST 2000     toor@nightrain.xelus.com:/usr/obj/usr/src/sys/NIGHTRAIN  i386

>Description:

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'?

>How-To-Repeat:

	Run 'periodic weekly'.
	Note that the resulting /var/db/locate.database is very small.

>Fix:

	Workaround:  Remove '-s' from the find command in
	/usr/libexec/locate.updatedb .


>Release-Note:
>Audit-Trail:

From: Konstantinos Konstantinidis <kkonstan@duth.gr>
To: freebsd-gnats-submit@FreeBSD.org, malachai@iname.com
Cc:  
Subject: Re: misc/23284: locate database does not get rebuilt
Date: Thu, 14 Jun 2001 23:36:15 +0300

 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
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Thu Jun 14 21:42:52 PDT 2001 
State-Changed-Why:  

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. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23284 
>Unformatted:
