[Linux-ha-dev] [patch 13/17] [ldirectord] Dont access CALLBACK unless it is defined

Horms horms at verge.net.au
Wed Jul 4 03:49:28 MDT 2007


Don't access the global vairable CALLBACK unless it is defined

Signed-off-by: Simon Horman <horms at verge.net.au>

Index: heartbeat/ldirectord/ldirectord.in
===================================================================
--- heartbeat.orig/ldirectord/ldirectord.in	2007-07-04 16:28:51.000000000 +0900
+++ heartbeat/ldirectord/ldirectord.in	2007-07-04 18:46:12.000000000 +0900
@@ -3344,7 +3344,7 @@ sub check_cfgfile
 		} else {
 			&ld_log(" - ignore new configuration\n");
 		}
-		if (-x $CALLBACK) {
+		if (defined($CALLBACK) and -x $CALLBACK) {
 			&system_wrapper("$CALLBACK $CONFIG");
 		}
 		$status = 1;

-- 

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/



More information about the Linux-HA-Dev mailing list