summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2007-10-15 22:09:19 +0000
committerse <se@FreeBSD.org>2007-10-15 22:09:19 +0000
commite42b1cae2da41e190d53d244ceeadb19458925f7 (patch)
treeaa8a624271243b6521dc3efdfc5d92203e7f32f8 /usr.bin/locate
parent33db6d7cd5a5d910a4fc1f0818b62019b7ba8e2e (diff)
downloadFreeBSD-src-e42b1cae2da41e190d53d244ceeadb19458925f7.zip
FreeBSD-src-e42b1cae2da41e190d53d244ceeadb19458925f7.tar.gz
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).
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/updatedb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh
index 9c0ace8..ea9122f 100644
--- a/usr.bin/locate/locate/updatedb.sh
+++ b/usr.bin/locate/locate/updatedb.sh
@@ -52,7 +52,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
: ${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
OpenPOWER on IntegriCloud