Follow-up Comment #7, bug #64171 (project findutils): Seems like my last comment got lost.
I do see the same behavior if I build it myself. If I run with -D all and without any -maxdepth arg (the scenario that fails), the ./opt folder does not appear anywhere in the output. If I run with -D all *_and also with_* -maxdepth 2, here is the relevant bit from the output concerning the ./opt folder: consider_visiting (early): ‘./opt’: fts_info=FTS_D , fts_level= 1, prev_depth=1 fts_path=‘./opt’, fts_accpath=‘opt’ consider_visiting (late): ‘./opt’: fts_info=FTS_D , isdir=1 ignore=0 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/elasticsearch-7.17.9’: fts_info=FTS_D , fts_level= 2, prev_depth=1 fts_path=‘./opt/elasticsearch-7.17.9’, fts_accpath=‘elasticsearch-7.17.9’ consider_visiting (late): ‘./opt/elasticsearch-7.17.9’: fts_info=FTS_D , isdir=1 ignore=0 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/elasticsearch-7.17.9’: fts_info=FTS_DP, fts_level= 2, prev_depth=2 fts_path=‘./opt/elasticsearch-7.17.9’, fts_accpath=‘elasticsearch-7.17.9’ consider_visiting (late): ‘./opt/elasticsearch-7.17.9’: fts_info=FTS_DP, isdir=1 ignore=1 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/.DS_Store’: fts_info=FTS_NSOK, fts_level= 2, prev_depth=2 fts_path=‘./opt/.DS_Store’, fts_accpath=‘.DS_Store’ consider_visiting (late): ‘./opt/.DS_Store’: fts_info=FTS_NSOK, isdir=0 ignore=0 have_stat=0 have_type=1 consider_visiting (early): ‘./opt/homebrew’: fts_info=FTS_D , fts_level= 2, prev_depth=2 fts_path=‘./opt/homebrew’, fts_accpath=‘homebrew’ consider_visiting (late): ‘./opt/homebrew’: fts_info=FTS_D , isdir=1 ignore=0 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/homebrew’: fts_info=FTS_DP, fts_level= 2, prev_depth=2 fts_path=‘./opt/homebrew’, fts_accpath=‘homebrew’ consider_visiting (late): ‘./opt/homebrew’: fts_info=FTS_DP, isdir=1 ignore=1 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/local’: fts_info=FTS_D , fts_level= 2, prev_depth=2 fts_path=‘./opt/local’, fts_accpath=‘local’ consider_visiting (late): ‘./opt/local’: fts_info=FTS_D , isdir=1 ignore=0 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/local’: fts_info=FTS_DP, fts_level= 2, prev_depth=2 fts_path=‘./opt/local’, fts_accpath=‘local’ consider_visiting (late): ‘./opt/local’: fts_info=FTS_DP, isdir=1 ignore=1 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/X11’: fts_info=FTS_D , fts_level= 2, prev_depth=2 fts_path=‘./opt/X11’, fts_accpath=‘X11’ consider_visiting (late): ‘./opt/X11’: fts_info=FTS_D , isdir=1 ignore=0 have_stat=1 have_type=1 consider_visiting (early): ‘./opt/X11’: fts_info=FTS_DP, fts_level= 2, prev_depth=2 fts_path=‘./opt/X11’, fts_accpath=‘X11’ consider_visiting (late): ‘./opt/X11’: fts_info=FTS_DP, isdir=1 ignore=1 have_stat=1 have_type=1 consider_visiting (early): ‘./opt’: fts_info=FTS_DP, fts_level= 1, prev_depth=2 fts_path=‘./opt’, fts_accpath=‘opt’ consider_visiting (late): ‘./opt’: fts_info=FTS_DP, isdir=1 ignore=1 have_stat=1 have_type=1 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64171> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/