Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: lib by andrew from 
      ([email protected])
   2. Linux-HA CVS: linux-ha by alan from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Tue,  2 May 2006 07:03:18 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: lib by andrew from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : andrew
Host    : 
Project : linux-ha
Module  : lib

Dir     : linux-ha/lib/crm/common


Modified Files:
        xml.c 


Log Message:
Make the CIB file read/writable only by the owner (hacluster)
Fixes bug #1224

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/crm/common/xml.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- xml.c       2 May 2006 09:59:15 -0000       1.74
+++ xml.c       2 May 2006 13:03:18 -0000       1.75
@@ -1,4 +1,4 @@
-/* $Id: xml.c,v 1.74 2006/05/02 09:59:15 andrew Exp $ */
+/* $Id: xml.c,v 1.75 2006/05/02 13:03:18 andrew Exp $ */
 /* 
  * Copyright (C) 2004 Andrew Beekhof <[EMAIL PROTECTED]>
  * 
@@ -592,7 +592,8 @@
        char *now_str = NULL;
        gboolean is_done = FALSE;
        FILE *file_output_strm = NULL;
-
+       static mode_t cib_mode = S_IRUSR|S_IWUSR;
+       
        CRM_CHECK(filename != NULL, return -1);
 
        crm_debug_3("Writing XML out to %s", filename);
@@ -615,6 +616,12 @@
        buffer = dump_xml_formatted(xml_node);
        CRM_CHECK(buffer != NULL && strlen(buffer) > 0, return -1);
 
+       /* establish the file with correct permissions */
+       file_output_strm = fopen(filename, "w");
+       fclose(file_output_strm);
+       chmod(filename, cib_mode);
+
+       /* now write it */
        file_output_strm = fopen(filename, "w");
        if(file_output_strm == NULL) {
                crm_free(buffer);




------------------------------

Message: 2
Date: Tue,  2 May 2006 07:18:08 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: linux-ha by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Module  : linux-ha

Dir     : linux-ha


Modified Files:
        heartbeat.spec.in 


Log Message:
Added cibadmin man page to RPM spec file

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat.spec.in,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -3 -r1.173 -r1.174
--- heartbeat.spec.in   28 Apr 2006 11:01:27 -0000      1.173
+++ heartbeat.spec.in   2 May 2006 13:18:07 -0000       1.174
@@ -1,4 +1,4 @@
-#      $Id: heartbeat.spec.in,v 1.173 2006/04/28 11:01:27 lars Exp $
+#      $Id: heartbeat.spec.in,v 1.174 2006/05/02 13:18:07 alan Exp $
 
 # Workaround for a change in RPM 4.1.x; needs proper fixing soon!
 ##%define _unpackaged_files_terminate_build 0
@@ -1231,6 +1231,7 @@
 %doc @mandir@/man8/heartbeat.8*
 %doc @mandir@/man8/apphbd.8*
 %doc @mandir@/man8/ha_logd.8*
+%doc @mandir@/man8/cibadmin.8*
 %doc @docdir@
 %define ENABLE_SNMP_SUBAGENT @RPM_ENABLE_SNMP_SUBAGENT@
 %if %{ENABLE_SNMP_SUBAGENT}




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 30, Issue 5
*******************************************

Reply via email to