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