cvs commit: src/usr.bin/locate/locate updatedb.sh

Christian S.J. Peron csjp at FreeBSD.org
Mon Oct 15 17:22:13 PDT 2007


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 at FreeBSD.ORG
FreeBSD Committer


More information about the cvs-src mailing list