fs: Make compatible with boost 1.78

Github-Pull: #24104
Rebased-From: dc5d6b0d47
This commit is contained in:
Andrew Chow
2022-01-19 15:21:25 -05:00
committed by fanquake
parent 9b5f674abb
commit 021c3d892f
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ bool VerifyWallets(interfaces::Chain& chain)
fs::path wallet_dir = gArgs.GetArg("-walletdir", "");
boost::system::error_code error;
// The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error);
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error).remove_trailing_separator();
if (error || !fs::exists(wallet_dir)) {
chain.initError(strprintf(_("Specified -walletdir \"%s\" does not exist"), wallet_dir.string()));
return false;