[bug #45930] -ignore_readdir_race ineffective in find 4.5.11 and 4.5.14

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #18, bug #45930 (group findutils):

This issue is not because of the directory type, but ...ugh,
rather because the -execdir action resets ignore_readdir_race=false:

https://git.savannah.gnu.org/cgit/findutils.git/tree/find/parser.c?id=faa13013686b17#n2812

You can verify by adding another -ignore_readdir_race at the very
end of the command line (which will issue a warning about that
but will still ignore the ENOENT errors:


$ ~/findutils/find/find test -ignore_readdir_race -name 'bin' -execdir rmdir
'foo' 'bar' 'baz' ';' -ignore_readdir_race || echo 'errors'
find/find: warning: you have specified the global option -ignore_readdir_race
after the argument -name, but global options are not positional, i.e.,
-ignore_readdir_race affects tests specified before it as well as those
specified after it.  Please specify global options before other arguments.


This change for -execdir has been added in 2005 in this commit:
https://git.savannah.gnu.org/cgit/findutils.git/commit/?id=74a750b11fba8

@James: do you remember or have email notes about why -execdir should disable
-ignore_readdir_race?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?45930>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ5qWaQAKCRCqLAuaBUf3
TjyeAQDRoUHRqwCyFq3GKDb3Vx5t20QH1ucMdBWE4UqZmkEA6QEApxN+K5Fe7dcY
yv4bTmfB/WryJqj/JRrx4XGIwZsuvAk=
=awv+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.