Tools/mmaps_generator: Fixed loading db2 stores on linux

* Author @rapsys

Closes #21898

# Conflicts:
#	src/tools/mmaps_generator/PathCommon.h
This commit is contained in:
Shauren
2018-05-02 15:09:21 +02:00
committed by Ovahlord
parent 67a5f43536
commit 16f699b049

View File

@@ -25,6 +25,7 @@
#ifndef _WIN32
#include <stddef.h>
#include <cstring>
#include <dirent.h>
#endif
@@ -109,7 +110,7 @@ namespace MMAP
errno = 0;
if ((dp = readdir(dirp)) != nullptr)
{
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