mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +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:
+2
-2
@@ -106,8 +106,8 @@ public:
|
||||
static bool Chmod(const CString& sFile, mode_t mode);
|
||||
bool Seek(unsigned long uPos);
|
||||
bool Truncate();
|
||||
bool Open(const CString& sFileName, int iFlags, mode_t iMode = 0644);
|
||||
bool Open(int iFlags, mode_t iMode = 0644);
|
||||
bool Open(const CString& sFileName, int iFlags = O_RDONLY, mode_t iMode = 0644);
|
||||
bool Open(int iFlags = O_RDONLY, mode_t iMode = 0644);
|
||||
int Read(char *pszBuffer, int iBytes);
|
||||
bool ReadLine(CString & sData, const CString & sDelimiter = "\n");
|
||||
bool ReadFile(CString& sData, size_t iMaxSize = 512 * 1024);
|
||||
|
||||
Reference in New Issue
Block a user