} else {
fatalf("Swap directory %s is not a directory.", aPath);
}
- } else if (0 == mkdir(aPath, 0755)) {
+ } else if (0 == mkdir(aPath, 0750)) {
debugs(47, (should_exist ? DBG_IMPORTANT : 3), aPath << " created");
created = 1;
} else {
int xerrno = errno;
if (xerrno == ENOENT) {
debugs(36, DBG_CRITICAL, MYNAME << "WARNING: Creating " << p1);
- if (mkdir(p1.c_str(), 0777) == 0)
+ if (mkdir(p1.c_str(), 0750) == 0)
return 0;
}
std::string cert_full(db_path + "/" + cert_dir);
std::string size_full(db_path + "/" + size_file);
- if (mkdir(db_path.c_str(), 0777))
+ if (mkdir(db_path.c_str(), 0750))
throw TextException(ToSBuf("Cannot create ", db_path), Here());
- if (mkdir(cert_full.c_str(), 0777))
+ if (mkdir(cert_full.c_str(), 0750))
throw TextException(ToSBuf("Cannot create ", cert_full), Here());
std::ofstream size(size_full.c_str());