aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
author0xFFFC0000 <0xFFFC0000@proton.me>2024-04-30 23:20:10 +0000
committer0xFFFC0000 <0xFFFC0000@proton.me>2024-04-30 23:20:10 +0000
commitde9c461a98f5e1fe3d428222f4917991a74c4b8f (patch)
treed99a457d423670f7e080243bfd802ef0a713df9f /src/p2p
parentMerge pull request #9243 (diff)
downloadmonero-de9c461a98f5e1fe3d428222f4917991a74c4b8f.tar.xz
common: support boost filesystem copy_options.
Co-authored-by: selsta <selsta@sent.at>
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_peerlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/p2p/net_peerlist.cpp b/src/p2p/net_peerlist.cpp
index 11cf235a5..78cf13785 100644
--- a/src/p2p/net_peerlist.cpp
+++ b/src/p2p/net_peerlist.cpp
@@ -42,6 +42,7 @@
#include <boost/serialization/version.hpp>
#include "net_peerlist_boost_serialization.h"
+#include "common/util.h"
namespace nodetool
@@ -200,7 +201,7 @@ namespace nodetool
if (!out)
{
// if failed, try reading in unportable mode
- boost::filesystem::copy_file(path, path + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
+ tools::copy_file(path, path + ".unportable");
src_file.close();
src_file.open( path , std::ios_base::binary | std::ios_base::in);
if(src_file.fail())