diff options
-rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index b0c966457..d0bffc7dc 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -308,7 +308,7 @@ bool InspIRCd::OpenLog(char**, int) if (Config->logpath.empty()) { std::string path = std::string(home) + "/.inspircd"; - if (!mkdir(path.c_str(), 0700) && errno != EEXIST) + if (!mkdir(path.c_str(), 0700) || errno == EEXIST) { /* Log to ~/.inspircd/ircd.log */ Config->logpath = path + "/startup.log"; |