cluster: RHEL56 - cman init: fix FENCED_OPTS shell escaping

Fabio M. Di Nitto fabbione at fedoraproject.org
Wed Sep 21 12:02:20 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b58b340885082b19bc2f8eab28354e552249e151
Commit:        b58b340885082b19bc2f8eab28354e552249e151
Parent:        a121a03a7c2e94d47e1bb60cd535cc304b972513
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Tue Sep 20 17:07:00 2011 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Sep 21 14:01:58 2011 +0200

cman init: fix FENCED_OPTS shell escaping

Resolves: rhbz#740179

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 cman/init.d/cman |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cman/init.d/cman b/cman/init.d/cman
index 2ed83a5..4727d22 100755
--- a/cman/init.d/cman
+++ b/cman/init.d/cman
@@ -166,7 +166,7 @@ start_daemons()
 
     status fenced &> /dev/null
     if [ $? -ne 0 ]; then
-	errmsg=$( /sbin/fenced "$FENCED_OPTS" 2>&1 ) || return 1
+	errmsg=$( /sbin/fenced $FENCED_OPTS 2>&1 ) || return 1
     fi
 
     status dlm_controld &> /dev/null


More information about the cluster-commits mailing list