Excessive calls to stat in ftsfind

2008-07-30 Thread Andreas Schwab
When using fts there are too many calls to stat compared to oldfind. One problem is the use of an uninitialized variable in ftsfind.c:consider_visiting, see the patch below for a fix. Another problem is that with fts there is no way to distinguish state.have_stat and state.have_type, ie. fts_read

[bug #23964] Conflicting assumptions about slashes and -name

2008-07-30 Thread Eric Blake
Follow-up Comment #1, bug #23964 (project findutils): The second version CANNOT match anything, and if it did match something, then that is a bug. '-name' implies that a basename search is performed, and the basename of './core.*' is 'core.*', regardless of whether you searched in core* or ./cor

[bug #23964] Conflicting assumptions about slashes and -name

2008-07-30 Thread James Youngman
URL: Summary: Conflicting assumptions about slashes and -name Project: findutils Submitted by: jay Submitted on: Wednesday 07/30/2008 at 11:02 Category: None Severity: