arno-iptables-firewall 1.9.2.h-1 QoS script component has "Bad substitution" error with /bin/dash but not with /bin/bash
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-
re: arno-iptables-
arno-iptables-
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-
change to ENABLED=1
/etc/init.
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/
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-
Installed: 1.9.2.h-1
Candidate: 1.9.2.h-1
Version table:
*** 1.9.2.h-1 0
500 http://
100 /var/lib/
Changed in arno-iptables-firewall (Debian): | |
status: | Unknown → New |
Changed in arno-iptables-firewall (Debian): | |
status: | New → Fix Released |
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