diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp index a58a1e13..22795313 100644 --- a/src/FileUtils.cpp +++ b/src/FileUtils.cpp @@ -249,6 +249,10 @@ bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool OldFile.Close(); NewFile.Close(); + struct stat st; + GetInfo(sOldFileName, st); + Chmod(sNewFileName, st.st_mode); + return true; }