This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RHEL5 - [fence] Fix fence_xvmd trying to read wrong args from ccs


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9e2755ed4fd4d93cf5af34b5c64663e2536e2940
Commit:        9e2755ed4fd4d93cf5af34b5c64663e2536e2940
Parent:        ea8e447f55864271a645a0b5ab32fb383bb8ad96
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Wed Oct 15 15:19:11 2008 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Wed Oct 15 15:20:57 2008 -0400

[fence] Fix fence_xvmd trying to read wrong args from ccs

---
 fence/agents/xvm/options-ccs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fence/agents/xvm/options-ccs.c b/fence/agents/xvm/options-ccs.c
index 84ed873..41863e1 100644
--- a/fence/agents/xvm/options-ccs.c
+++ b/fence/agents/xvm/options-ccs.c
@@ -83,6 +83,9 @@ args_get_ccs(char *optstr, fence_xvm_args_t *args)
 			continue;
 		}
 
+		if (!arg->stdin_opt)
+			continue;
+
 		n = snprintf(buf, sizeof(buf), "/cluster/fence_xvmd/@%s\n",
 			     arg->stdin_opt);
 		if (n == sizeof(buf)) {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]