From a5d108868351cc0429d3a3b9475dfb7eb76628a0 Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Thu, 25 Aug 2022 09:26:40 -0600 Subject: [PATCH] Also canonicalize paramsdir. --- src/util/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/system.cpp b/src/util/system.cpp index 94d345e99..f737eea98 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -299,7 +299,7 @@ const fs::path &ZC_GetParamsDir() return path; if (mapArgs.count("-paramsdir")) { - path = fs::system_complete(mapArgs["-paramsdir"]); + path = fs::weakly_canonical(fs::system_complete(mapArgs["-paramsdir"])); if (!fs::is_directory(path)) { throw std::runtime_error(strprintf("The -paramsdir '%s' does not exist or is not a directory", path.string())); }