mirror of
https://github.com/znc/znc.git
synced 2026-05-03 12:02:30 +02:00
Open the ISpoofFile with mode 'O_RDWR|O_CREAT' instead of '(int)true'
This fixes a bug from r1337 git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1352 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
2
znc.cpp
2
znc.cpp
@@ -248,7 +248,7 @@ bool CZNC::WriteISpoof(CUser* pUser) {
|
||||
|
||||
if (!m_sISpoofFile.empty()) {
|
||||
m_pISpoofLockFile = new CFile;
|
||||
if (!m_pISpoofLockFile->TryExLock(m_sISpoofFile, true)) {
|
||||
if (!m_pISpoofLockFile->TryExLock(m_sISpoofFile, O_RDWR | O_CREAT)) {
|
||||
delete m_pISpoofLockFile;
|
||||
m_pISpoofLockFile = NULL;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user