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

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

[comment #11 comment #11:]
> Alright, that's yet another case than the already-fixed one.
> The fix for this one would look like the following.

> diff --git a/find/ftsfind.c b/find/ftsfind.c
> index 89ed9dd0..f57fa809 100644
> --- a/find/ftsfind.c
> +++ b/find/ftsfind.c
> @@ -304,6 +304,9 @@ consider_visiting (FTS *p, FTSENT *ent)
> }
> if (ent->fts_info == FTS_DNR)
> {
> +      /* Ignore ENOENT error for vanished directories.  */
> +      if (ENOENT == ent->fts_errno && options.ignore_readdir_race)
> +        return;
> nonfatal_target_file_error (ent->fts_errno, ent->fts_path);
> if (options.do_dir_first)
> {


> WDYT?

I just tested that change with the scenario in my previous comment and I still
see the issue.  I added some debug output (to stderr) before the new early
return but the debug output is never printed.  :-(

I had hoped to understand this and submit a patch myself, but understanding
FTS is difficult...


    _______________________________________________________

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-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ2IEXQAKCRCqLAuaBUf3
ThfVAP9SjuRsCp+5JDDLF/uag7KAZTJzZjJy7LD7iZMFqpfpTwD/dHDLICDfm+BZ
OVhEcqcUnlRoOVI5+05biMay0ddf6AE=
=iJAg
-----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.