Tools/mmaps_generator: Fixed loading db2 stores on linux

* Author @rapsys

Closes #21898
This commit is contained in:
Shauren
2018-05-02 15:09:21 +02:00
parent 8fa3d2a385
commit 136269a585
+2 -1
View File
@@ -25,6 +25,7 @@
#ifndef _WIN32
#include <cstddef>
#include <cstring>
#include <dirent.h>
#else
#include <Windows.h>
@@ -106,7 +107,7 @@ namespace MMAP
errno = 0;
if ((dp = readdir(dirp)) != NULL)
{
if (matchWildcardFilter(filter.c_str(), dp->d_name))
if (strcmp(dp->d_name, ".") != 0 && strcmp(dp->d_name, "..") != 0 && matchWildcardFilter(filter.c_str(), dp->d_name))
fileList.push_back(std::string(dp->d_name));
}
else