From 491d2271d8d7eee4ec369543b2636b74af0cb458 Mon Sep 17 00:00:00 2001 From: cperciva Date: Mon, 22 Aug 2005 08:22:48 +0000 Subject: 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 --- usr.bin/locate/locate/locate.rc | 2 +- usr.bin/locate/locate/updatedb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/locate') 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} -- cgit v1.1