On Wed, Jul 30, 2008 at 4:42 PM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > 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 cannot report back the type of the > file without a full stat. That means that a command like "find -type d" > will have to stat _every_ file, whereas without fts, but with working > d_type support it would only have to stat the directories.
Recent changes to gnulib and find have changed this situation, I believe. Could you retest this (from the CVS trunk code for findutils) please? Thanks, James.
