fix: Use std::filesystem::absolute(base/p) to match boost::filesystem::absolute(p,base) behavior

Agent-Logs-Url: https://github.com/XRPLF/rippled/sessions/41d17280-3340-4246-97d4-06f2bcf365cb

Co-authored-by: mathbunnyru <12270691+mathbunnyru@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-07 09:42:04 +00:00
committed by GitHub
parent 336b9c101e
commit 9ccb7742ca
2 changed files with 2 additions and 2 deletions

View File

@@ -1143,7 +1143,7 @@ Config::getDebugLogFile() const
{
// Unless an absolute path for the log file is specified, the
// path is relative to the config file directory.
logFile = CONFIG_DIR / logFile;
logFile = std::filesystem::absolute(CONFIG_DIR / logFile);
}
if (!logFile.empty())

View File

@@ -483,7 +483,7 @@ setupPerfLog(Section const& section, std::filesystem::path const& configDir)
setup.perfLog = std::filesystem::path(perfLog);
if (setup.perfLog.is_relative())
{
setup.perfLog = configDir / setup.perfLog;
setup.perfLog = std::filesystem::absolute(configDir / setup.perfLog);
}
}