8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration

This commit is contained in:
Vlad Khorsun 2023-08-02 17:24:55 +03:00
parent 04928a467a
commit bc0b679f43

View File

@ -28,6 +28,7 @@
#include "TraceConfiguration.h"
#include "../../common/SimilarToRegex.h"
#include "../../common/isc_f_proto.h"
#include "../../common/db_alias.h"
using namespace Firebird;
@ -125,9 +126,14 @@ void TraceCfgReader::readConfig()
{
PathName noQuotePattern = pattern.ToPathName();
noQuotePattern.alltrim(" '\'");
PathName expandedName;
if (m_databaseName == noQuotePattern)
if (m_databaseName == noQuotePattern ||
expandDatabaseName(noQuotePattern, expandedName, nullptr) &&
m_databaseName == expandedName)
{
match = exactMatch = true;
}
else
{
bool regExpOk = false;