Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2007 19:19:25 -0500
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Stefan Esser <se@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/locate/locate updatedb.sh
Message-ID:  <20071016001925.GA63885@sub.vaned.net>
In-Reply-To: <200710152209.l9FM9Jv3017150@repoman.freebsd.org>
References:  <200710152209.l9FM9Jv3017150@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
You should claim ownership over PR: 116960 and change it to patched
since the reporter was complaining about this issue.

On Mon, Oct 15, 2007 at 10:09:19PM +0000, Stefan Esser wrote:
> se          2007-10-15 22:09:19 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.bin/locate/locate updatedb.sh 
>   Log:
>   Make the updatedb script installed as /usr/libexec/locate.updatedb
>   inspect all local file systems, not only ufs and ext2fs. A number
>   of local file systems has been added over time, and at least zfs
>   has the potential to become a popular choice. Without this change
>   a ZFS root file system causes the script to ignore all file-systems
>   and leads to an empty locate db. (An alternative is to add all the
>   relevant file systems individually, which means that at least zfs,
>   xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).
>   
>   Revision  Changes    Path
>   1.21      +2 -2      src/usr.bin/locate/locate/updatedb.sh
> http://cvsweb.FreeBSD.org/src/usr.bin/locate/locate/updatedb.sh.diff?r1=1.20&r2=1.21
> | --- src/usr.bin/locate/locate/updatedb.sh	2005/11/12 12:45:08	1.20
> | +++ src/usr.bin/locate/locate/updatedb.sh	2007/10/15 22:09:19	1.21
> | @@ -26,7 +26,7 @@
> |  #
> |  # updatedb - update locate database for local mounted filesystems
> |  #
> | -# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/locate/locate/updatedb.sh,v 1.20 2005/11/12 12:45:08 grog Exp $
> | +# $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/locate/locate/updatedb.sh,v 1.21 2007/10/15 22:09:19 se Exp $
> |  
> |  if [ "$(id -u)" = "0" ]; then
> |  	echo ">>> WARNING" 1>&2
> | @@ -52,7 +52,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; ex
> |  : ${FCODES:=/var/db/locate.database}	 # the database
> |  : ${SEARCHPATHS:="/"}		# directories to be put in the database
> |  : ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp /var/db/portsnap"} # unwanted directories
> | -: ${FILESYSTEMS:="ufs ext2fs"}			 # allowed filesystems 
> | +: ${FILESYSTEMS:="local"}		 # allowed filesystems 
> |  : ${find:=find}
> |  
> |  case X"$SEARCHPATHS" in 
> 

-- 
Christian S.J. Peron
csjp@FreeBSD.ORG
FreeBSD Committer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071016001925.GA63885>