NodeUtility::CreateBackupFile(apiUsersPath);
std::fstream fp;
- String tempFilename = Utility::CreateTempFile(apiUsersPath + ".XXXXXX", 0640, fp);
+ String tempFilename = Utility::CreateTempFile(apiUsersPath + ".XXXXXX", 0644, fp);
fp << "/**\n"
<< " * The APIUser objects are used for authentication against the API.\n"
NodeUtility::CreateBackupFile(apipath);
std::fstream fp;
- String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0640, fp);
+ String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0644, fp);
fp << "/**\n"
<< " * The API listener is used for distributed monitoring setups.\n"
NodeUtility::CreateBackupFile(apipath);
std::fstream fp;
- String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0640, fp);
+ String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0644, fp);
fp << "/**\n"
<< " * The API listener is used for distributed monitoring setups.\n"
}
std::fstream fp;
- String tempFilename = Utility::CreateTempFile(filename + ".XXXXXX", 0640, fp);
+ String tempFilename = Utility::CreateTempFile(filename + ".XXXXXX", 0644, fp);
fp << "/*\n";
fp << " * Generated by Icinga 2 node setup commands\n";
std::ifstream ifp(constantsFile.CStr());
std::fstream ofp;
- String tempFile = Utility::CreateTempFile(constantsFile + ".XXXXXX", 0640, ofp);
+ String tempFile = Utility::CreateTempFile(constantsFile + ".XXXXXX", 0644, ofp);
bool found = false;
NodeUtility::CreateBackupFile(apipath);
std::fstream fp;
- String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0640, fp);
+ String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0644, fp);
fp << "/**\n"
<< " * The API listener is used for distributed monitoring setups.\n"
std::fstream fp;
- String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0640, fp);
+ String tempApiPath = Utility::CreateTempFile(apipath + ".XXXXXX", 0644, fp);
fp << "/**\n"
<< " * The API listener is used for distributed monitoring setups.\n"
CreateRepositoryPath(Utility::DirName(path));
std::fstream fp;
- String tempFilename = Utility::CreateTempFile(path + ".XXXXXX", 0640, fp);
+ String tempFilename = Utility::CreateTempFile(path + ".XXXXXX", 0644, fp);
SerializeObject(fp, name, type, item);
fp << std::endl;
String objectsPath = GetObjectsPath();
std::fstream objectfp;
- String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0640, objectfp);
+ String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0644, objectfp);
objectfp << std::fixed;
String statusPath = GetStatusPath();
std::fstream statusfp;
- String tempStatusPath = Utility::CreateTempFile(statusPath + ".XXXXXX", 0640, statusfp);
+ String tempStatusPath = Utility::CreateTempFile(statusPath + ".XXXXXX", 0644, statusfp);
statusfp << std::fixed;
String repositoryFile = GetRepositoryDir() + SHA256(params->Get("endpoint")) + ".repo";
std::fstream fp;
- String tempRepositoryFile = Utility::CreateTempFile(repositoryFile + ".XXXXXX", 0640, fp);
+ String tempRepositoryFile = Utility::CreateTempFile(repositoryFile + ".XXXXXX", 0644, fp);
fp << JsonEncode(params);
fp.close();
String path = GetModAttrPath();
std::fstream fp;
- String tempFilename = Utility::CreateTempFile(path + ".XXXXXX", 0640, fp);
+ String tempFilename = Utility::CreateTempFile(path + ".XXXXXX", 0644, fp);
ConfigObject::Ptr previousObject;
ConfigObject::DumpModifiedAttributes(boost::bind(&PersistModAttrHelper, boost::ref(fp), boost::ref(previousObject), _1, _2, _3));