Also canonicalize paramsdir.

This commit is contained in:
Greg Pfeil 2022-08-25 09:26:40 -06:00
parent 8bf80ae641
commit a5d1088683
1 changed files with 1 additions and 1 deletions

View File

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