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); } }