[Coverity] Unchecked return value (CHECKED_RETURN)

This commit is contained in:
Peter D. Barnes, Jr.
2013-05-15 16:26:46 -04:00
parent 764cedd639
commit 80b15ea83f
5 changed files with 50 additions and 16 deletions

View File

@@ -308,11 +308,17 @@ MakeDirectories (std::string path)
{
std::string tmp = Join (elements.begin (), i);
#if defined(HAVE_MKDIR_H)
mkdir (tmp.c_str (), S_IRWXU);
if (mkdir (tmp.c_str (), S_IRWXU))
{
NS_LOG_ERROR ("failed creating directory " << tmp);
}
#endif
}
#if defined(HAVE_MKDIR_H)
mkdir (path.c_str (), S_IRWXU);
if (mkdir (path.c_str (), S_IRWXU))
{
NS_LOG_ERROR ("failed creating directory " << path);
}
#endif
}