From 7a027acaf4598fe9195d6d83db0393fe0bacb96a Mon Sep 17 00:00:00 2001 From: kawi Date: Fri, 2 Jan 2015 10:53:25 +0100 Subject: [PATCH] fix: endless loop --- os/ReTraverser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/ReTraverser.cpp b/os/ReTraverser.cpp index 271021b..6736447 100644 --- a/os/ReTraverser.cpp +++ b/os/ReTraverser.cpp @@ -349,9 +349,9 @@ ReDirStatus_t* ReTraverser::rawNextFile(int& level) // we search for any file: rc = m_dirs[m_level]; } else { - // we are interested only in subdirectories: + // we are interested only in true subdirectories: again = true; - if (! current->isDotDir() && current->isDirectory()){ + if (current->isDirectory() && ! current->isDotDir() && ! current->isLink()){ // open a new level alreadyRead = initEntry(current->m_path, current->node() , m_level + 1); } -- 2.39.5