Coverity 1304849

This commit is contained in:
Pavel Kirienko 2015-06-10 12:54:57 +03:00
parent 2961f75cb3
commit dc3f09855c

View File

@ -114,6 +114,7 @@ public:
struct stat sb;
if (stat(base_path.c_str(), &sb) != 0 || !S_ISDIR(sb.st_mode))
{
// coverity[toctou]
rv = mkdir(base_path.c_str(), S_IRWXU | S_IRWXG | S_IRWXO);
}
if (rv >= 0 )