Bug 723181

Summary: iptables initscript broken when /bin/sh symlinks to dash
Product: [Fedora] Fedora Reporter: Daniel Cordero <danielcordero>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 19:09:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daniel Cordero 2011-07-19 10:33:24 UTC
Description of problem:
The initscript installed by the iptables package breaks if the /bin/sh symlink is changed to a shell other than bash (e.g. dash).

/bin/sh (-> dash) does not understand some of the bashisms in the initscript:
  /etc/init.d/iptables: 56: Syntax error: "(" unexpected

Version-Release number of selected component (if applicable):
iptables-1.4.10-2.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Install bash, dash and iptables.
2. Symlink /bin/sh to dash:
# /bin/ln -sf /bin/dash /bin/sh
3. Run:
# /bin/systemctl start iptables.service

Actual results:
The command fails with a generic message:
  Job failed. See system logs and 'systemctl status' for details.
                                                           [FAILED]

Expected results:
iptables restores previously saved firewall configuration, and returns no
message or error code ($?).

Additional info:
The shebang in /etc/init.d/iptables should point directly to a shell that
understands the syntax (i.e. #!/bin/bash), instead of relying on /bin/sh being a symlink to /bin/bash.

Comment 1 Fedora End Of Life 2012-08-07 19:09:55 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping