fix of copy_file_inner

This commit is contained in:
David Kocik 2020-10-23 15:36:14 +02:00
parent 41b3af7599
commit 8b647ab41b

View file

@ -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;