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
This commit is contained in:
parent
2c15852e1e
commit
f46417c577
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user