mirror of
https://github.com/znc/znc.git
synced 2026-07-31 05:53:38 +02: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:
+1
-1
@@ -138,7 +138,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) {
|
||||
|
||||
CFile File(sFileName);
|
||||
|
||||
if (!File.Open(O_RDONLY)) {
|
||||
if (!File.Open()) {
|
||||
DEBUG_ONLY(cerr << "Unable to open file [" << sFileName << "] in CTemplate::Print()" << endl);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user