]> git.sesse.net Git - plocate/commit
Fix a crash on --existing and --regex together.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 4 Sep 2021 22:47:14 +0000 (00:47 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 4 Sep 2021 22:47:14 +0000 (00:47 +0200)
commitfb7b94545366926f6cb2f09dcda51365e301eda9
tree5209cef5e2ada72453f250b70ec7b595b114a52a
parent3250b908875f7d8893719f0d3f9c615d381ec93f
Fix a crash on --existing and --regex together.

--regex (and other linear scans) would launch multiple threads,
but IOUringEngine isn't thread-safe. Since --existing is obscure,
and --regex is obscure, we solve this by simply making synchronous
stat() calls.

Reported by Michael Arndt.
plocate.cpp