From 8b647ab41bed916bc8c2f1f7636fc4f7fbcccaee Mon Sep 17 00:00:00 2001 From: David Kocik Date: Fri, 23 Oct 2020 15:36:14 +0200 Subject: [PATCH] fix of copy_file_inner --- src/libslic3r/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/utils.cpp b/src/libslic3r/utils.cpp index 88c5c52e0..a2f4b6ec9 100644 --- a/src/libslic3r/utils.cpp +++ b/src/libslic3r/utils.cpp @@ -433,7 +433,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, b //This error code is ignored boost::system::error_code ec; - boost::filesystem::permissions(target, perms, error_code); + boost::filesystem::permissions(target, perms, ec); if (ec) BOOST_LOG_TRIVIAL(error) << "Copy file permisions before copy error message: " << ec.message(); // This error code is passed up @@ -443,7 +443,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, b return FAIL_COPY_FILE; } ec.clear(); - boost::filesystem::permissions(target, perms, error_code); + boost::filesystem::permissions(target, perms, ec); if (ec) BOOST_LOG_TRIVIAL(error) << "Copy file permisions after copy error message: " << ec.message(); return SUCCESS;