mirror of
https://github.com/znc/znc.git
synced 2026-04-30 10:34:16 +02:00
Merge pull request #1492 from citrus-it/patch-1
Stop creating files with odd permissions.
This commit is contained in:
@@ -352,11 +352,11 @@ bool CFile::Open(int iFlags, mode_t iMode) {
|
||||
}
|
||||
|
||||
// We never want to get a controlling TTY through this -> O_NOCTTY
|
||||
iMode |= O_NOCTTY;
|
||||
iFlags |= O_NOCTTY;
|
||||
|
||||
// Some weird OS from MS needs O_BINARY or else it generates fake EOFs
|
||||
// when reading ^Z from a file.
|
||||
iMode |= O_BINARY;
|
||||
iFlags |= O_BINARY;
|
||||
|
||||
m_iFD = open(m_sLongName.c_str(), iFlags, iMode);
|
||||
if (m_iFD < 0) {
|
||||
|
||||
Reference in New Issue
Block a user