QDirIterator: reducing "randomness"
commit62d95b8ef57f097422862cd2fa13f5debfbc8aae
authorJoão Abecasis <joao@abecasis.name>
Thu, 16 Jul 2009 11:34:34 +0000 (16 13:34 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 17 Jul 2009 17:05:04 +0000 (17 19:05 +0200)
treea2e16b27fbae765043fedea527a2af16db3fe4e8
parentaf643f0612f7bd560ccb94cdce91395fc4c9acdb
QDirIterator: reducing "randomness"

The difference between a canonical and absolute paths is subtle, and not
what QDirIterator is about. With this change, we still avoid loops
generated by symbolic links but won't duplicate entries because of these
differences.

While at it, when avoiding loops with symbolic links, please don't mess
with the next path! That only added inconsistency.

Reviewed-by: Olivier Goffart
src/corelib/io/qdiriterator.cpp