diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 2d96915..8632e91 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -3957,7 +3957,7 @@ GHC_INLINE bool copy_file(const path& from, const path& to, copy_options options return false; } if (st.permissions() != sf.permissions()) { - if (::fchmod(out, static_cast(sf.permissions() & perms::all)) != 0) { + if (::fchmod(out, static_cast(sf.permissions() & perms::all)) != 0) { ec = detail::make_system_error(); ::close(in); ::close(out);