heartbeat-2: Bashism in some script

Bug #110112 reported by Surf@ceS
2
Affects Status Importance Assigned to Milestone
heartbeat-2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: heartbeat-2

Package: heartbeat-2
Version: 2.0.7-2 (feisty)
Severity: normal

Some IPAddr2 scripts contains bashisms.

/usr/lib/ocf/resource.d/heartbeat/IPaddr2:
IF_MAC=${IF_MAC:0:2}:${IF_MAC:2:2}:${IF_MAC:4:2}:${IF_MAC:6:2}:${IF_MAC:8:2}:${IF_MAC:10:2}

/usr/lib/ocf/resource.d/heartbeat/Filesystem:
n_active="${n_active//$UNAME/}"

Hotfix: replace /bin/sh in the first line by /bin/bash
Other scripts might be affected as well, as I don't use all of them.

best regards,
Nicolas

Changed in heartbeat-2:
status: Unconfirmed → Confirmed
Revision history for this message
RonanG (ronan-nosafety) wrote :

the Filesystem script in Gutsy is similarly broken. specifying bash fixes it.

Revision history for this message
Hoffmann (hoffmann-apache) wrote :

it is because /bin/sh points to /bin/dash. fix that and you are done.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.