arno-iptables-firewall 1.9.2.h-1 QoS script component has "Bad substitution" error with /bin/dash but not with /bin/bash

Bug #693115 reported by Tim Miller Dyck
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arno-iptables-firewall (Debian)
Fix Released
Unknown
arno-iptables-firewall (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: arno-iptables-firewall

re: arno-iptables-firewall 1.9.2.h-1

arno-iptables-firewall has a script that implements QoS -- it is at /usr/share/arno-iptables-firewall/plugins/60traffic-shaper.plugin.

This script has an incompatibility with the default /bin/sh shell in Ubuntu (actually /bin/dash). An error “Bad substitution” is reported when the QoS script runs.

Test case:

vi /etc/arno-iptables-firewall/plugins/traffic-shaper.conf
change to ENABLED=1
/etc/init.d/arno-iptables-firewall restart or /etc/init.d/arno-iptables-firewall status

An error "Bad substitution" will be reported and the QoS script fails to run completely.

As a workaround, switch the arno script to use /bin/bash.

vi /usr/sbin/arno-iptables-firewall

change the first line to #!/bin/bash instead of calling /bin/sh

With this change, no error is reported and QoS is enabled as expected.

I also tried the Ubuntu 10.10 version but had the same behavior.

Thanks,
Tim Miller Dyck

---

Description: Ubuntu 10.04.1 LTS
Release: 10.04

arno-iptables-firewall:
  Installed: 1.9.2.h-1
  Candidate: 1.9.2.h-1
  Version table:
 *** 1.9.2.h-1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Tim Miller Dyck (timmillerdyck) wrote :

This has now been fixed upstream along with bash-isms in some of the other arno-iptables-firewall scripts.

-Tim Miller Dyck

Version 2.0.0b (March 25, 2011)
-------------------------------
...
! remove bash-ism related to traffic-shaper plugin (Reported by Debian
upstream, Debian bug #619496)
...

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619496

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. Setting to triaged per debian report.

Changed in arno-iptables-firewall (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in arno-iptables-firewall (Debian):
status: Unknown → New
Changed in arno-iptables-firewall (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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