1) add loop detection to recurse
2) call the correct stat function in recurse instead of both stat and
lstat
3) split out readdir loop into applydir useful for avoiding redundant
stat calls and when extra logic is needed (as in find)
4) use applydir in find instead of doing it manually (still need to
finish const propagation, hit a wall in my understanding)
I think it should be possible to get rid of most uses of fnck() now
that recurse can find loops, but I have not dug in far enough yet to
be sure.
-emg
Received on Fri Mar 06 2015 - 21:37:40 CET