From 97aa30c4d78c14dfa128737f27d517ca320e9940 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Mon, 16 May 2022 16:49:56 +0200 Subject: [PATCH] commented boost::permisions --- src/libslic3r/utils.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libslic3r/utils.cpp b/src/libslic3r/utils.cpp index 371b8eb115..eab4b366f6 100644 --- a/src/libslic3r/utils.cpp +++ b/src/libslic3r/utils.cpp @@ -677,10 +677,10 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, s // calls to cause needless failures on permissionless filesystems (ie. FATs on SD cards etc.) // or when the target file doesn't exist. boost::system::error_code ec; - boost::filesystem::permissions(target, perms, ec); - if (ec) - BOOST_LOG_TRIVIAL(debug) << "boost::filesystem::permisions before copy error message (this could be irrelevant message based on file system): " << ec.message(); - ec.clear(); + //boost::filesystem::permissions(target, perms, ec); + //if (ec) + // BOOST_LOG_TRIVIAL(debug) << "boost::filesystem::permisions before copy error message (this could be irrelevant message based on file system): " << ec.message(); + //ec.clear(); #ifdef __linux__ // We want to allow copying files on Linux to succeed even if changing the file attributes fails. // That may happen when copying on some exotic file system, for example Linux on Chrome. @@ -692,10 +692,10 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, s error_message = ec.message(); return FAIL_COPY_FILE; } - ec.clear(); - boost::filesystem::permissions(target, perms, ec); - if (ec) - BOOST_LOG_TRIVIAL(debug) << "boost::filesystem::permisions after copy error message (this could be irrelevant message based on file system): " << ec.message(); + //ec.clear(); + //boost::filesystem::permissions(target, perms, ec); + //if (ec) + // BOOST_LOG_TRIVIAL(debug) << "boost::filesystem::permisions after copy error message (this could be irrelevant message based on file system): " << ec.message(); return SUCCESS; }