From 7ef9f76bb0532dd82d19e2f0d620b134e9febd09 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 27 Jan 2009 19:54:38 +0000 Subject: [PATCH] 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 --- znc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/znc.cpp b/znc.cpp index 91db93ed..b78b83f5 100644 --- a/znc.cpp +++ b/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;