From f0f4dd5e6b6ed5e50d0444a4de3b2a13156edf64 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 6 Oct 2023 02:37:16 +0200 Subject: Use dcp::filesystem to wrap filesystem calls and fix_long_path anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems. --- src/lib/scp_uploader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/scp_uploader.cc') diff --git a/src/lib/scp_uploader.cc b/src/lib/scp_uploader.cc index dbe82b67f..6c63a6c3e 100644 --- a/src/lib/scp_uploader.cc +++ b/src/lib/scp_uploader.cc @@ -26,6 +26,7 @@ #include "cross.h" #include "compose.hpp" #include +#include #include #include @@ -110,7 +111,7 @@ LIBDCP_ENABLE_WARNINGS void SCPUploader::upload_file (boost::filesystem::path from, boost::filesystem::path to, boost::uintmax_t& transferred, boost::uintmax_t total_size) { - auto to_do = boost::filesystem::file_size (from); + auto to_do = dcp::filesystem::file_size(from); /* Use generic_string so that we get forward-slashes in the path, even on Windows */ LIBDCP_DISABLE_WARNINGS ssh_scp_push_file (_scp, to.generic_string().c_str(), to_do, S_IRUSR | S_IWUSR); -- cgit v1.2.3