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

Signed-off-by: Simon Horman <[EMAIL PROTECTED]>

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/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to