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:
psychon
2009-01-19 15:55:41 +00:00
parent 9210bdc97e
commit 6345ce12fa
7 changed files with 8 additions and 8 deletions

View File

@@ -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;
}