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 authored and Ovahlord committed 2022-07-05 20:02:29 +02:00
1 parent 67a5f43536
commit 16f699b049
1 file changed
+2 -1
+2 -1
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