Your message dated Wed, 02 Jun 2010 11:36:26 +0200
with message-id <[email protected]>
and subject line Obsolete
has caused the Debian Bug report #487167,
regarding heartbeat: Some bashisms
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
487167: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487167
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: heartbeat
Version: 2.1.3-6
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu hardy ubuntu-patch
Attached patch fixes some bashisms in a couple of scripts.
-- System Information:
Debian Release: lenny/sid
APT prefers intrepid
APT policy: (500, 'intrepid')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-16-generic (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
diff -ruN heartbeat-2.1.3.orig/resources/OCF/Filesystem
heartbeat-2.1.3/resources/OCF/Filesystem
--- heartbeat-2.1.3.orig/resources/OCF/Filesystem 2007-12-21
16:32:27.000000000 +0100
+++ heartbeat-2.1.3/resources/OCF/Filesystem 2008-06-19 22:50:15.000000000
+0200
@@ -188,7 +188,7 @@
}
determine_blockdevice() {
- if [ $blockdevice == "yes" ]; then
+ if [ $blockdevice = "yes" ]; then
return
fi
@@ -301,7 +301,7 @@
else
OCFS2_CLUSTER=$(find "$OCFS2_CONFIGFS" -maxdepth 1 -mindepth 1
-type d -printf %f 2>/dev/null)
set -- $OCFS2_CLUSTER
- local n="$#"
+ local n; n="$#"
if [ $n -gt 1 ]; then
ocf_log err "$OCFS2_CLUSTER: several clusters found."
exit $OCF_ERR_GENERIC
@@ -453,11 +453,11 @@
return $OCF_ERR_UNIMPLEMENTED
fi
- local n_type="$OCF_RESKEY_CRM_meta_notify_type"
- local n_op="$OCF_RESKEY_CRM_meta_notify_operation"
- local n_active="$OCF_RESKEY_CRM_meta_notify_active_uname"
- local n_stop="$OCF_RESKEY_CRM_meta_notify_stop_uname"
- local n_start="$OCF_RESKEY_CRM_meta_notify_start_uname"
+ local n_type; n_type="$OCF_RESKEY_CRM_meta_notify_type"
+ local n_op; n_op="$OCF_RESKEY_CRM_meta_notify_operation"
+ local n_active; n_active="$OCF_RESKEY_CRM_meta_notify_active_uname"
+ local n_stop; n_stop="$OCF_RESKEY_CRM_meta_notify_stop_uname"
+ local n_start; n_start="$OCF_RESKEY_CRM_meta_notify_start_uname"
ocf_log info "$OCFS2_UUID: notify: $n_type for $n_op"
ocf_log info "$OCFS2_UUID: notify active: $n_active"
@@ -506,7 +506,7 @@
ocf_log info "$OCFS2_UUID: post-processed active: $n_active"
- local n_myself=${HA_CURHOST:-$(uname -n | tr '[A-Z]' '[a-z]')}
+ local n_myself; n_myself=${HA_CURHOST:-$(uname -n | tr '[A-Z]' '[a-z]')}
ocf_log info "$OCFS2_UUID: I am node $n_myself."
case " $n_active " in
@@ -605,7 +605,7 @@
if [ "X${HOSTOS}" = "XOpenBSD" ];then
PIDS=`fstat | grep ${SUB} | awk
'{print $3}'`
for PID in ${PIDS};do
- kill -9 ${PID}
+ kill -s 9 ${PID}
ocf_log info "Sent kill
-9 to ${PID}"
done
else
diff -ruN heartbeat-2.1.3.orig/resources/OCF/Xen
heartbeat-2.1.3/resources/OCF/Xen
--- heartbeat-2.1.3.orig/resources/OCF/Xen 2007-12-21 16:32:27.000000000
+0100
+++ heartbeat-2.1.3/resources/OCF/Xen 2008-06-19 22:43:44.000000000 +0200
@@ -193,7 +193,7 @@
if [ $? -eq ${OCF_NOT_RUNNING} ];then
return ${OCF_NOT_RUNNING}
fi
- if [ "X${OCF_RESKEY_monitor_scripts}" == "X" ];then
+ if [ "X${OCF_RESKEY_monitor_scripts}" = "X" ];then
return ${OCF_SUCCESS}
fi
for SCRIPT in ${OCF_RESKEY_monitor_scripts};do
--- End Message ---
--- Begin Message ---
Patch was applied to 2.1.3.
signature.asc
Description: OpenPGP digital signature
--- End Message ---