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/

Attachment: signature.asc
Description: PGP signature

Reply via email to