summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index ce962fea6..b0c966457 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))
+ if (!mkdir(path.c_str(), 0700) && errno != EEXIST)
{
/* Log to ~/.inspircd/ircd.log */
Config->logpath = path + "/startup.log";