From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 23 Oct 2007 14:58:53 -0000 Subject: [Cluster-devel] conga/ricci/modules/cluster ClusterConf.cpp Message-ID: <20071023145853.3021.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterConf.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.1&r2=1.8.2.2 --- conga/ricci/modules/cluster/ClusterConf.cpp 2006/12/11 23:58:01 1.8.2.1 +++ conga/ricci/modules/cluster/ClusterConf.cpp 2007/10/23 14:58:53 1.8.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