From 9ccb7742ca42e7f44210b554da2c72cbbc73f67f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 7 May 2026 09:42:04 +0000 Subject: [PATCH] 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> --- src/xrpld/core/detail/Config.cpp | 2 +- src/xrpld/perflog/detail/PerfLogImp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrpld/core/detail/Config.cpp b/src/xrpld/core/detail/Config.cpp index 576e8d7660..07c2a6b449 100644 --- a/src/xrpld/core/detail/Config.cpp +++ b/src/xrpld/core/detail/Config.cpp @@ -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()) diff --git a/src/xrpld/perflog/detail/PerfLogImp.cpp b/src/xrpld/perflog/detail/PerfLogImp.cpp index 6deff5b5e7..e8bf28f7af 100644 --- a/src/xrpld/perflog/detail/PerfLogImp.cpp +++ b/src/xrpld/perflog/detail/PerfLogImp.cpp @@ -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); } }