[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 #11, bug #45930 (group findutils):
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?
_______________________________________________________
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----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ2H3uwAKCRCqLAuaBUf3 TmtxAQDlA8I0zkv2rti+kcZPowEz7Muh7wPgpyt/7q5oWMFcYAEAxvOsjQaq3tct FgWrVNbXeJgvLYG6axN5wUNA34csvwA= =rbfd -----END PGP SIGNATURE-----