mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make O_RDONLY the default mode when opening files through CFile
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1336 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -189,7 +189,7 @@ bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool
|
||||
CFile OldFile(sOldFileName);
|
||||
CFile NewFile(sNewFileName);
|
||||
|
||||
if (!OldFile.Open(O_RDONLY)) {
|
||||
if (!OldFile.Open()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user