]> git.sesse.net Git - plocate/commit
In updatedb, check prunepaths _before_ opening the directory.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 4 Jan 2024 22:10:15 +0000 (23:10 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 4 Jan 2024 22:10:15 +0000 (23:10 +0100)
commit6e7991e5e0e043c412638c140cc9bb5610db4668
treec96275d8476b690cfaf39281ac6e97b472688e6f
parent07e5cc4d0ba761aa265f5594bddbdfa6df0a2459
In updatedb, check prunepaths _before_ opening the directory.

This makes sure we never even try to enter a directory if it is
in prunepaths (much like we already do with prunenames).

Inspired by https://bugs.debian.org/1025099, although it doesn't
fix that issue (we still open it before checking prunefs).
updatedb.cpp