diff --git a/src/mover.C b/src/mover.C index a88cca859d..e354762d2c 100644 --- a/src/mover.C +++ b/src/mover.C @@ -55,7 +55,7 @@ bool SpecialisedMover::do_copy(string const & from, string const & to, if (!ofs) return false; ofs.close(); - if (!support::chmod(to.c_str(), mode_t(mode))) + if (!support::chmod(to.c_str(), mode)) return false; }