mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Merge pull request #7693 from FirebirdSQL/work/7692
Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration
This commit is contained in:
commit
f4c22d3dc8
@ -28,6 +28,7 @@
|
|||||||
#include "TraceConfiguration.h"
|
#include "TraceConfiguration.h"
|
||||||
#include "../../common/SimilarToRegex.h"
|
#include "../../common/SimilarToRegex.h"
|
||||||
#include "../../common/isc_f_proto.h"
|
#include "../../common/isc_f_proto.h"
|
||||||
|
#include "../../common/db_alias.h"
|
||||||
|
|
||||||
using namespace Firebird;
|
using namespace Firebird;
|
||||||
|
|
||||||
@ -125,9 +126,14 @@ void TraceCfgReader::readConfig()
|
|||||||
{
|
{
|
||||||
PathName noQuotePattern = pattern.ToPathName();
|
PathName noQuotePattern = pattern.ToPathName();
|
||||||
noQuotePattern.alltrim(" '\'");
|
noQuotePattern.alltrim(" '\'");
|
||||||
|
PathName expandedName;
|
||||||
|
|
||||||
if (m_databaseName == noQuotePattern)
|
if (m_databaseName == noQuotePattern ||
|
||||||
|
(expandDatabaseName(noQuotePattern, expandedName, nullptr),
|
||||||
|
m_databaseName == expandedName) )
|
||||||
|
{
|
||||||
match = exactMatch = true;
|
match = exactMatch = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool regExpOk = false;
|
bool regExpOk = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user