mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +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
@@ -164,7 +164,7 @@ CFile* CDCCSock::OpenFile(bool bWrite) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!m_pFile->Open(O_RDONLY)) {
|
||||
if (!m_pFile->Open()) {
|
||||
delete m_pFile;
|
||||
m_pFile = NULL;
|
||||
m_pUser->PutModule(m_sModuleName, "DCC -> [" + m_sRemoteNick + "] - Could not open file [" + m_sLocalFile + "]");
|
||||
|
||||
Reference in New Issue
Block a user