Red Hat Bugzilla – Bug 449142
bad init script (unquoted $1 and == in comparison)
Last modified: 2008-12-13 05:57:23 EST
Description of problem:
The init script /etc/init.d/avahi-daemon starts contains:
--- cut ---
if [ $1 == 'status' ]; then
--- cut ---
There are two problems with that - "$1" is unquoted (quoted later in the case
statement) and the use of '==' (the script shebang is "#! /bin/sh, not #!/bin/bash).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. less /etc/init.d/avahi-daemon
2. /etc/init.d/avahi-daemon # you'll see the error, give no argument
I think this is quite easy fix :-)
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '8'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 8's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 8 is 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 please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
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:
The '$1' problem got fixed in Fedora 10, but '/bin/bash' is needed for '==' in comparison (or '=' with '/bin/sh').
Fixed in rawhide.