From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 3 16:00:20 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C817D106566C for ; Sat, 3 Sep 2011 16:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A83438FC0C for ; Sat, 3 Sep 2011 16:00:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p83G0Kl1001854 for ; Sat, 3 Sep 2011 16:00:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p83G0KAh001852; Sat, 3 Sep 2011 16:00:20 GMT (envelope-from gnats) Date: Sat, 3 Sep 2011 16:00:20 GMT Message-Id: <201109031600.p83G0KAh001852@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= Cc: Subject: Re: conf/160225: [periodic] /etc/periodic/weekly/310.locate doesn't see /etc/locate.rc. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2011 16:00:20 -0000 The following reply was made to PR conf/160225; it has been noted by GNATS. From: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= To: bug-followup@FreeBSD.org, hiroaki0404@gmail.com Cc: Subject: Re: conf/160225: [periodic] /etc/periodic/weekly/310.locate doesn't see /etc/locate.rc. Date: Sun, 4 Sep 2011 00:32:19 +0900 Hello, all. Followings works fine for me. Regards, --- /usr/src/etc/periodic/weekly/310.locate 2011-02-26 19:30:50.000000000 +0900 +++ /etc/periodic/weekly/310.locate 2011-09-03 16:37:29.000000000 +0900 @@ -16,7 +16,12 @@ echo "" echo "Rebuilding locate database:" - locdb=/var/db/locate.database + . /etc/locate.rc + if [ 'x' = "x$FCODES" ]; then + locdb=/var/db/locate.database + else + locdb="$FCODES" + fi touch $locdb && rc=0 || rc=3 chown nobody $locdb || rc=3