mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 09:46:53 +00:00
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:
committed by
GitHub
parent
336b9c101e
commit
9ccb7742ca
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user