mirror of https://github.com/Icinga/icinga2.git
parent
c2027ef18c
commit
59b81168ff
|
@ -559,8 +559,9 @@ bool Utility::MkDir(const String& path, int flags)
|
||||||
#else /*_ WIN32 */
|
#else /*_ WIN32 */
|
||||||
if (mkdir(path.CStr()) < 0 && errno != EEXIST) {
|
if (mkdir(path.CStr()) < 0 && errno != EEXIST) {
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
//TODO handle missing dirs properly
|
BOOST_THROW_EXCEPTION(posix_error()
|
||||||
return false;
|
<< boost::errinfo_api_function("mkdir")
|
||||||
|
<< boost::errinfo_errno(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue