cluster: RHEL510 - rgmanager: ip.sh: Fix for ipv6 addrs with uppercase hex digits

Ryan McCabe rmccabe at fedoraproject.org
Mon May 20 15:53:27 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=7473b8cf0199b7f0e819cd78bd53f215ed371095
Commit:        7473b8cf0199b7f0e819cd78bd53f215ed371095
Parent:        f6df91f927b79c1c8e3078d1bcaf7ff0eb9383f6
Author:        Ryan McCabe <rmccabe at redhat.com>
AuthorDate:    Mon May 20 11:48:26 2013 -0400
Committer:     Ryan McCabe <rmccabe at redhat.com>
CommitterDate: Mon May 20 11:53:07 2013 -0400

rgmanager: ip.sh: Fix for ipv6 addrs with uppercase hex digits

This patch fixes a bug that causes ip.sh to fail when using an IPv6
address with uppercase hex alphabetic digits.

This problem appears to not affect RHEL 6 or later.

Resolves: rhbz#865462

Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
---
 rgmanager/src/resources/ip.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/resources/ip.sh b/rgmanager/src/resources/ip.sh
index bbd85f3..c5ffaed 100755
--- a/rgmanager/src/resources/ip.sh
+++ b/rgmanager/src/resources/ip.sh
@@ -932,6 +932,7 @@ inet6)
 	;;
 *)
 	if [ "${OCF_RESKEY_address//:/}" != "${OCF_RESKEY_address}" ]; then
+		OCF_RESKEY_address="$(echo $OCF_RESKEY_address | tr '[:upper:]' '[:lower:]')"
 		export OCF_RESKEY_family=inet6
 	else
 		export OCF_RESKEY_family=inet


More information about the cluster-commits mailing list