From: Michael Friedrich Date: Mon, 7 Mar 2016 08:22:07 +0000 (+0100) Subject: Fix: MkDirP supports '/' and '\' on Windows X-Git-Tag: v2.4.4~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baecdc321038e22564b55c83c50bb8d46f45f97c;p=icinga2 Fix: MkDirP supports '/' and '\' on Windows fixes #10231 --- diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index c86051bb4..b139ce7b0 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -724,7 +724,7 @@ void Utility::MkDirP(const String& path, int mode) #ifndef _WIN32 pos = path.Find("/", pos + 1); #else /*_ WIN32 */ - pos = path.Find("\\", pos + 1); + pos = path.FindFirstOf("/\\", pos + 1); #endif /* _WIN32 */ MkDir(path.SubStr(0, pos), mode); }