Added chacking cache dir perms at starting(2).

This commit is contained in:
Takeshi Nakatani 2015-08-23 04:14:57 +00:00
parent ce66430fac
commit 97b8b34aab

View File

@ -558,10 +558,9 @@ int mkdirp(const string& path, mode_t mode)
return EPERM;
}
}else{
int result;
if(0 != (result = mkdir(base.c_str(), mode))){
if(0 != mkdir(base.c_str(), mode)){
return errno;
}
}
}
}
return 0;