diff --git a/src/libslic3r/utils.cpp b/src/libslic3r/utils.cpp index 7ef94e55a3..a941dcf5e8 100644 --- a/src/libslic3r/utils.cpp +++ b/src/libslic3r/utils.cpp @@ -425,6 +425,7 @@ std::error_code rename_file(const std::string &from, const std::string &to) #ifdef __linux__ // Copied from boost::filesystem, to support copying a file to a weird filesystem, which does not support changing file attributes, // for example ChromeOS Linux integration or FlashAIR WebDAV. +// Copied and simplified from boost::filesystem::detail::copy_file() with option = overwrite_if_exists and with just the Linux path kept. bool copy_file_linux(const boost::filesystem::path &from, const boost::filesystem::path &to, boost::system::error_code &ec) { using namespace boost::filesystem; @@ -544,6 +545,8 @@ bool copy_file_linux(const boost::filesystem::path &from, const boost::filesyste if (to_mode != from_mode && ::fchmod(outfile.fd, from_mode) != 0) { if (platform_flavor() == PlatformFlavor::LinuxOnChromium) { // Ignore that. 9p filesystem does not allow fmod(). + BOOST_LOG_TRIVIAL(info) << "copy_file_linux() failed to fchmod() the output file \"" << to.string() << "\" to " << from_mode << ": " << ec.message() << + " This may be expected when writing to a 9p filesystem."; } else { // Generic linux. Write out an error to console. At least we may get some feedback. BOOST_LOG_TRIVIAL(error) << "copy_file_linux() failed to fchmod() the output file \"" << to.string() << "\" to " << from_mode << ": " << ec.message();