Tools/mmaps_generator: Fixed loading db2 stores on linux
* Author @rapsys Closes #21898
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user