aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-05-20 23:39:01 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-05-20 23:39:01 -0500
commitb13e597e8e347b26055047e417963650d9bd7f1f (patch)
tree17ff180801624c8d630c4f9734c22f93479778a1 /src/wallet/wallet2.cpp
parent19fa7dceac6de9a2c8c5f6231284a26a5bc60ed0 (diff)
parent755dddd2bc9a74fe7f2a61fc49af2a98ca4e82ee (diff)
downloadmonzero-core-b13e597e8e347b26055047e417963650d9bd7f1f.tar.gz
monzero-core-b13e597e8e347b26055047e417963650d9bd7f1f.tar.xz
monzero-core-b13e597e8e347b26055047e417963650d9bd7f1f.zip
Merge pull request #9306
755dddd common: support boost filesystem copy_options. Co-authored-by: selsta <selsta@sent.at> (0xFFFC0000)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 6ae31b8bb..1ec9dbfa9 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -6208,7 +6208,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
catch (...)
{
LOG_PRINT_L0("Failed to open portable binary, trying unportable");
- if (use_fs) boost::filesystem::copy_file(m_wallet_file, m_wallet_file + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
+ if (use_fs) tools::copy_file(m_wallet_file, m_wallet_file + ".unportable");
std::stringstream iss;
iss.str("");
iss << cache_data;
@@ -6230,7 +6230,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
catch (...)
{
LOG_PRINT_L0("Failed to open portable binary, trying unportable");
- if (use_fs) boost::filesystem::copy_file(m_wallet_file, m_wallet_file + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
+ if (use_fs) tools::copy_file(m_wallet_file, m_wallet_file + ".unportable");
std::stringstream iss;
iss.str("");
iss << cache_file_buf;