]> git.sesse.net Git - plocate/commit - plocate.1
Support searching multiple databases in plocate.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sat, 27 Mar 2021 23:19:49 +0000 (00:19 +0100)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 28 Mar 2021 10:34:36 +0000 (12:34 +0200)
commit3f086da52c281f81cb2290dad17cfb0f1d659810
treeb49ab4a73828ec4e523ed036672108dcd9aabb53
parent4a70122ed746cb67c6f6a10cbf400627e7b03c29
Support searching multiple databases in plocate.

We support multiple -d arguments, single -d arguments with multiple
databases (colon-separated), and LOCATE_PATH. The two latter should
be compatible with mlocate, although we support escaping colons in
file paths and I believe mlocate does not.

This is slightly trickier than one might expect due to security
considerations; we're not robust against malicious input, so we need to
make sure that if we process an attacker-supplied database, the process
has already dropped privileges and cannot subvert a privileged reader.
options.h
plocate.1
plocate.cpp