]> gitweb.hamatoma.de Git - crepublib/commitdiff
fix: endless loop
authorkawi <winfriedkappeler@atron.de>
Fri, 2 Jan 2015 09:53:25 +0000 (10:53 +0100)
committerkawi <winfriedkappeler@atron.de>
Fri, 2 Jan 2015 09:53:25 +0000 (10:53 +0100)
os/ReTraverser.cpp

index 271021b361ec662e02fc6d1a76b22b204be16f44..6736447ce713bd9d454f770526f26d231dd83bd5 100644 (file)
@@ -349,9 +349,9 @@ ReDirStatus_t* ReTraverser::rawNextFile(int& level)
                                        // we search for any file:\r
                                        rc = m_dirs[m_level];\r
                                } else {\r
-                                       // we are interested only in subdirectories:\r
+                                       // we are interested only in true subdirectories:\r
                                        again = true;\r
-                    if (! current->isDotDir() && current->isDirectory()){\r
+                    if (current->isDirectory() && ! current->isDotDir() && ! current->isLink()){\r
                                                // open a new level\r
                                                alreadyRead = initEntry(current->m_path, current->node() , m_level + 1);\r
                                        }\r