]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/helperfuncs.cpp
Fix the problems GreenReaper found with the windows select engine, this has never...
[user/henk/code/inspircd.git] / src / helperfuncs.cpp
index ce962fea6af32bce997f21fdaa4c12982b9577f3..b0c96645736c543047004e9ef9dbc80fd4c0c43b 100644 (file)
@@ -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";