Fix whiteout support in find(1)

find(1) ignores -type w passed to it. With this patch find(1) properly
identifies and prints whiteouts.

PR:		126384, 156703
Submitted by:	oleg@mamontov.net
MFC after:	1 week
This commit is contained in:
Oleksandr Tymoshenko 2019-01-28 02:00:39 +00:00
parent 31f53eaa40
commit f2ef15fec4

View File

@ -208,8 +208,10 @@ find_execute(PLAN *plan, char *paths[])
entry->fts_path, strerror(entry->fts_errno)); entry->fts_path, strerror(entry->fts_errno));
exitstatus = 1; exitstatus = 1;
continue; continue;
#ifdef FTS_W #if defined(FTS_W) && defined(FTS_WHITEOUT)
case FTS_W: case FTS_W:
if (ftsoptions & FTS_WHITEOUT)
break;
continue; continue;
#endif /* FTS_W */ #endif /* FTS_W */
} }