aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-05-02 15:09:21 +0200
committerShauren <shauren.trinity@gmail.com>2018-05-02 15:09:21 +0200
commit136269a5851a6755f644295a0171e4bc6c2bef17 (patch)
treeec35404dc4b3d1c3ed394f730f5312f9c7a08237 /src
parent8fa3d2a3852e3cdbc06f0a8080a9503b0697c3b8 (diff)
Tools/mmaps_generator: Fixed loading db2 stores on linux
* Author @rapsys Closes #21898
Diffstat (limited to 'src')
-rw-r--r--src/tools/mmaps_generator/PathCommon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/mmaps_generator/PathCommon.h b/src/tools/mmaps_generator/PathCommon.h
index 31ac3711b4b..4b46e720b4a 100644
--- a/src/tools/mmaps_generator/PathCommon.h
+++ b/src/tools/mmaps_generator/PathCommon.h
@@ -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