conf/160225: [periodic] /etc/periodic/weekly/310.locate doesn't see /etc/locate.rc.

阿部宏明 hiroaki0404 at gmail.com
Sat Sep 3 16:00:20 UTC 2011


The following reply was made to PR conf/160225; it has been noted by GNATS.

From: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= <hiroaki0404 at gmail.com>
To: bug-followup at FreeBSD.org, hiroaki0404 at gmail.com
Cc:  
Subject: Re: conf/160225: [periodic] /etc/periodic/weekly/310.locate
 doesn&#39;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


More information about the freebsd-bugs mailing list