[Debian-ha-maintainers] Bug#772219: cluster-glue: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Sat Dec 6 10:56:38 UTC 2014


Package: cluster-glue
Severity: serious
Version: 1.0.12~rc1+hg2777-1.2
User: debian-release at lists.debian.org
Usertags: goal-dash

Hi,

I've ran checkbashisms (from the 'devscripts' package) over the whole
archive and I found that your package has a /bin/sh script that uses a
"bashism".

checkbashisms' output:
> possible bashism in ./usr/sbin/hb_report line 1219 ($BASH_SOMETHING):
>			  [ ${BASH_VERSINFO[0]} = "4" ]; then
> possible bashism in ./usr/sbin/hb_report line 1219 (bash arrays,
> ${name[0|*|@]}):
>			  [ ${BASH_VERSINFO[0]} = "4" ]; then
> possible bashism in ./usr/sbin/hb_report line 1221 (BASH(_SOMETHING)=):
>		  BASH_XTRACEFD=3
> possible bashism in ./usr/lib/stonith/plugins/external/ippower9258 line 72
> (<<< here string):
>		  $LOG_ERROR "Received Challenge = <<<$challenge>>>."
> possible bashism in ./usr/lib/stonith/plugins/external/ippower9258 line 73
> (<<< here string):
>		  $LOG_ERROR "Sent postdata = <<<$postdata>>>."


Not using bash (or a Debian Policy compliant shell interpreter that doesn't
provide such an extra feature) as /bin/sh is likely to lead to errors or
unexpected behaviours. Please be aware that dash is the default /bin/sh.

Please closely examine the above output and the script, and determine
what the proper severity of the bug is, and adjust it accordingly. If
it's important or greater please hurry to get this fixed for jessie.

Hints about how to fix bashisms can be found at:
https://wiki.ubuntu.com/DashAsBinSh

Thanks in advance,
Raphael Geissert



More information about the Debian-ha-maintainers mailing list