[bug #60207] -prune returns false for files for which fstatat() fails with EACCESS

2021-03-10 Thread Stephane Chazelas
Follow-up Comment #3, bug #60207 (project findutils): [comment #2 comment #2:] [...] > In parser.c, we see that -prune adds it unless -depth is set: [...] > And indeed, adding -depth doesn't yield the extra "[call stat] [need type]". [...] Note that in any case, -prune can't be used (is ineffecti

[bug #60207] -prune returns false for files for which fstatat() fails with EACCESS

2021-03-10 Thread Bernhard Voelker
Follow-up Comment #2, bug #60207 (project findutils): Thanks for the report. Hmm, with '-D tree' we can see that -prune inserts a "[call stat] [need type]". $ find -D tree -name 'a*' -prune -o -print 2>&1 | sed -n '/^Optimized command line/{n; s/ .est success rate [0-9.]*.//g; p}' ( -name a* -

[bug #60207] -prune returns false for files for which fstatat() fails with EACCESS

2021-03-10 Thread Stephane Chazelas
Follow-up Comment #1, bug #60207 (project findutils): For the record, comparison with other find implementations on that second (symlink-based) example on the same system: $ gnu-find -L . -name 'a*' -prune -o -print . ./b1 find: ‘./a1’: Permission denied ./a1 ./b2 find: ‘./a5’: Not a directory f

[bug #60207] -prune returns false for files for which fstatat() fails with EACCESS

2021-03-10 Thread Stephane Chazelas
URL: Summary: -prune returns false for files for which fstatat() fails with EACCESS Project: findutils Submitted by: stephanechazelas Submitted on: Wed 10 Mar 2021 12:17:47 PM UTC Cat