Comment 9 for bug 373214

Revision history for this message
Colin Watson (cjwatson) wrote :

This is indeed a findutils bug, which I have diagnosed and will take up with upstream.

What's happening is that there's an "..install.cmd" file directly under include/, which matches the .* pattern given to find and therefore triggers the -prune action. Now, normally -prune is a no-op for files. Unfortunately, in this case the stat buffer find is using is undefined (because it uses FTS_NOSTAT as an optimisation) and so happens to contain stat information from the previous thing it touched, which happened to be a directory; it therefore gets confused and thinks ..install.cmd is a directory so sets the "stop_at_current_level" flag. This doesn't get cleared until the next time it exits a directory on its walk, which happens to be when it exits the asm/ directory.