conga/ricci/modules/cluster ClusterConf.cpp
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-10-23 14:58:53
Modified files:
ricci/modules/cluster: ClusterConf.cpp
Log message:
Explicitly chmod temp cluster.conf files to 0640
ricci/modules/cluster/ClusterConf.cpp +2 -2
@@ -82,9 +82,9 @@ // save tmp cluster.conf String tmp_path(CLUSTER_CONF_PATH + ".tmp_ricci"); - fstream fs(tmp_path.c_str(), - ios_base::out | ios_base::trunc); + fstream fs(tmp_path.c_str(), ios_base::out | ios_base::trunc); fs << generateXML(xml); + chmod(tmp_path.c_str(), 0640); fs.close(); // propagate/move to proper place