locate(1): Bring in some updates/fixes from FreeBSD
commit1daf624a7a99d096cf50fb7789e33d60472cfd3f
authorAaron LI <aly@aaronly.me>
Sat, 10 Mar 2018 03:59:29 +0000 (10 11:59 +0800)
committerSascha Wildner <saw@online.de>
Sat, 10 Mar 2018 14:05:32 +0000 (10 15:05 +0100)
tree8077e559137b814c4e62ec4ab27d371020bdea81
parentf2063930050e09548a96b22690a8d09ee2d02ba9
locate(1): Bring in some updates/fixes from FreeBSD

* The default value of "FILESYSTEMS" option is now determined using lsvfs(1),
  which contains all local file systems that are not synthetic, loopback mounts
  or read-only.
* New config option "PRUNEDIRS" in /etc/locate.rc with default value of ".git"
  to ignore the ".git" directories when making database.
* Warn when locate.updatedb(8) is directly run by root
* Some cleanups (no functional change)
* Improve license declarations, fix white spaces and typos
13 files changed:
usr.bin/locate/Makefile
usr.bin/locate/Makefile.inc
usr.bin/locate/bigram/Makefile
usr.bin/locate/bigram/locate.bigram.c
usr.bin/locate/code/Makefile
usr.bin/locate/locate/Makefile
usr.bin/locate/locate/concatdb.sh
usr.bin/locate/locate/locate.c
usr.bin/locate/locate/locate.rc
usr.bin/locate/locate/locate.updatedb.8
usr.bin/locate/locate/mklocatedb.sh
usr.bin/locate/locate/pathnames.h
usr.bin/locate/locate/updatedb.sh