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