Skip to content

Commit f4c22d3

Browse files
authored
Merge pull request #7693 from FirebirdSQL/work/7692
Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration
2 parents f628e52 + ab3d45b commit f4c22d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utilities/ntrace/TraceConfiguration.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "TraceConfiguration.h"
2929
#include "../../common/SimilarToRegex.h"
3030
#include "../../common/isc_f_proto.h"
31+
#include "../../common/db_alias.h"
3132

3233
using namespace Firebird;
3334

@@ -125,9 +126,14 @@ void TraceCfgReader::readConfig()
125126
{
126127
PathName noQuotePattern = pattern.ToPathName();
127128
noQuotePattern.alltrim(" '\'");
129+
PathName expandedName;
128130

129-
if (m_databaseName == noQuotePattern)
131+
if (m_databaseName == noQuotePattern ||
132+
(expandDatabaseName(noQuotePattern, expandedName, nullptr),
133+
m_databaseName == expandedName) )
134+
{
130135
match = exactMatch = true;
136+
}
131137
else
132138
{
133139
bool regExpOk = false;

0 commit comments

Comments
 (0)