From fdb97011e9b864e124d5d1b61843fc98c9784da0 Mon Sep 17 00:00:00 2001 From: gkanapat Date: Thu, 11 Oct 2018 12:54:53 -0400 Subject: [PATCH] find: make ftsfind honour the -ignore_readdir_race option --- find/ftsfind.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/find/ftsfind.c b/find/ftsfind.c index 39fdfbf..f594af6 100644 --- a/find/ftsfind.c +++ b/find/ftsfind.c @@ -399,6 +399,10 @@ consider_visiting (FTS *p, FTSENT *ent) nonfatal_target_file_error (ELOOP, ent->fts_path); return; } + else if (ENOENT == ent->fts_errno && options.ignore_readdir_race) + { + /* Ignore error for vanished files. */ + } else { nonfatal_target_file_error (ent->fts_errno, ent->fts_path); -- 2.8.4