cluster: RHEL57 - cman init: fix FENCED_OPTS shell escaping

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


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=0e53e6655e2dbf0432f2b0d4af9f2df07c25727a
Commit:        0e53e6655e2dbf0432f2b0d4af9f2df07c25727a
Parent:        103b9e866a82934db4c4443e1ca482aa66ea5b11
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:00:19 2011 +0200

cman init: fix FENCED_OPTS shell escaping

Resolves: rhbz#740181

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