mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
fixes
This commit is contained in:
parent
ab8a78d806
commit
28f7c929e0
@ -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<int>(sf.permissions() & perms::all)) != 0) {
|
||||
if (::fchmod(out, static_cast<mode_t>(sf.permissions() & perms::all)) != 0) {
|
||||
ec = detail::make_system_error();
|
||||
::close(in);
|
||||
::close(out);
|
||||
|
Loading…
x
Reference in New Issue
Block a user