public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: fabbione@sourceware.org
To: cluster-cvs@sources.redhat.com, cluster-devel@redhat.com
Subject: Cluster Project branch, STABLE2, updated. cluster-2.03.03-1-gd4a28c3
Date: Mon, 02 Jun 2008 04:45:00 -0000	[thread overview]
Message-ID: <20080602044531.25516.qmail@sourceware.org> (raw)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=d4a28c3135cf4a06dad23c10f4228be0880bcb4a

The branch, STABLE2 has been updated
       via  d4a28c3135cf4a06dad23c10f4228be0880bcb4a (commit)
      from  8a7314ea3f3d30cbf10b127fc5516a078d000adc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d4a28c3135cf4a06dad23c10f4228be0880bcb4a
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date:   Mon Jun 2 06:45:01 2008 +0200

    [CMAN] Fix cman_tool node name override
    
    Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

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

Summary of changes:
 cman/daemon/cmanccs.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cman/daemon/cmanccs.c b/cman/daemon/cmanccs.c
index 2bfc299..78a237b 100644
--- a/cman/daemon/cmanccs.c
+++ b/cman/daemon/cmanccs.c
@@ -564,9 +564,9 @@ static int get_ccs_join_info(void)
 	/* our nodename */
 	if (nodename_env) {
 		int ret;
-		ret = snprintf(path, sizeof(path), NODE_NAME_PATH_BYNAME, nodename);
+		ret = snprintf(path, sizeof(path), NODE_NAME_PATH_BYNAME, nodename_env);
 		if (ret < 0 || (size_t) ret >= sizeof(path)) {
-			log_printf(LOG_ERR, "Overridden node name %s is too long", nodename);
+			log_printf(LOG_ERR, "Overridden node name %s is too long", nodename_env);
 			write_cman_pipe("Overridden node name is too long");
 			error = -E2BIG;
 			goto out;
@@ -576,11 +576,12 @@ static int get_ccs_join_info(void)
 		if (!error) {
 			free(str);
 		} else {
-			log_printf(LOG_ERR, "Overridden node name %s is not in CCS", nodename);
+			log_printf(LOG_ERR, "Overridden node name %s is not in CCS", nodename_env);
 			write_cman_pipe("Overridden node name is not in CCS");
 			error = -ENOENT;
 			goto out;
 		}
+		strcpy(nodename, nodename_env);
 	} else {
 		struct utsname utsname;
 


hooks/post-receive
--
Cluster Project


                 reply	other threads:[~2008-06-02  4:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080602044531.25516.qmail@sourceware.org \
    --to=fabbione@sourceware.org \
    --cc=cluster-cvs@sources.redhat.com \
    --cc=cluster-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).