summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-08-22 08:22:48 +0000
committercperciva <cperciva@FreeBSD.org>2005-08-22 08:22:48 +0000
commit491d2271d8d7eee4ec369543b2636b74af0cb458 (patch)
tree686f27f1710e2ea2b1825fe9b2c3f43be02bf58c /usr.bin/locate
parent3b3aada1ca8b3d3a4f6df67fd14e056cfc5daaad (diff)
downloadFreeBSD-src-491d2271d8d7eee4ec369543b2636b74af0cb458.zip
FreeBSD-src-491d2271d8d7eee4ec369543b2636b74af0cb458.tar.gz
Most users probably aren't interested in locating 13000+ files named
[0-9a-f]{64}, so exclude portsnap's compressed snapshots from locate's indexing. Suggested by: silby MFC after: 3 days
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/locate.rc2
-rw-r--r--usr.bin/locate/locate/updatedb.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/locate/locate/locate.rc b/usr.bin/locate/locate/locate.rc
index 57835b3..dee3a07 100644
--- a/usr.bin/locate/locate/locate.rc
+++ b/usr.bin/locate/locate/locate.rc
@@ -16,7 +16,7 @@
#SEARCHPATHS="/"
# directories unwanted in output
-#PRUNEPATHS="/tmp /usr/tmp /var/tmp"
+#PRUNEPATHS="/tmp /usr/tmp /var/tmp /var/db/portsnap"
# filesystems allowed. Beware: a non-listed filesystem will be pruned
# and if the SEARCHPATHS starts in such a filesystem locate will build
diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh
index b9bf698..45de7e6 100644
--- a/usr.bin/locate/locate/updatedb.sh
+++ b/usr.bin/locate/locate/updatedb.sh
@@ -51,7 +51,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
: ${mklocatedb:=locate.mklocatedb} # make locate database program
: ${FCODES:=/var/db/locate.database} # the database
: ${SEARCHPATHS:="/"} # directories to be put in the database
-: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp"} # unwanted directories
+: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp /var/db/portsnap"} # unwanted directories
: ${FILESYSTEMS:="ufs"} # allowed filesystems
: ${find:=find}
OpenPOWER on IntegriCloud