mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user