mirror of https://github.com/Icinga/icinga2.git
parent
9e833d7563
commit
baecdc3210
|
@ -724,7 +724,7 @@ void Utility::MkDirP(const String& path, int mode)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
pos = path.Find("/", pos + 1);
|
pos = path.Find("/", pos + 1);
|
||||||
#else /*_ WIN32 */
|
#else /*_ WIN32 */
|
||||||
pos = path.Find("\\", pos + 1);
|
pos = path.FindFirstOf("/\\", pos + 1);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
MkDir(path.SubStr(0, pos), mode);
|
MkDir(path.SubStr(0, pos), mode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue