[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#615866: apache2.2-common: Missing "{" in line in /etc/init.d/apache2

Package: apache2.2-common
Version: 2.2.16-6
Severity: normal

Near the top of /etc/init.d/apache2 is a line which reads as follows:
        if [ "${APACHE_CONFDIR##/etc/apache2-}" != "$APACHE_CONFDIR}" ] ; then

I noticed the unbalanced braces in the line and thought it likely to be a mistake
with the mistake meaning they will never match.

Looking at /etc/apache2/envvars and there is a similar line which has balanced
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then

The error means, I think, that if APACHE_CONFDIR is set before the script is called and
its value doesn't use a suffix form (e.g. is not like /etc/apache2-something) then
DIR_SUFFIX will get set to APACHE_CONFDIR instead of being set to nothing.

-- Package-specific info:
List of enabled modules from 'apache2 -M':
  alias authz_default authz_host authz_user dir env mime proxy_http
  proxy reqtimeout rewrite setenvif ssl status

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2.2-common depends on:
ii  apache2-utils           2.2.16-6         utility programs for webservers
ii  apache2.2-bin           2.2.16-6         Apache HTTP Server common binary f
ii  libmagic1               5.04-5           File type determination library us
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  mime-support            3.48-1           MIME files 'mime.types' & 'mailcap
ii  perl                    5.10.1-17        Larry Wall's Practical Extraction 
ii  procps                  1:3.2.8-9        /proc file system utilities

Versions of packages apache2.2-common recommends:
ii  ssl-cert                      1.0.28     simple debconf wrapper for OpenSSL

Versions of packages apache2.2-common suggests:
pn  apache2-doc                   <none>     (no description available)
pn  apache2-suexec | apache2-suex <none>     (no description available)
ii  w3m [www-browser]             0.5.2-9    WWW browsable pager with excellent

Versions of packages apache2.2-common is related to:
pn  apache2-mpm-event             <none>     (no description available)
pn  apache2-mpm-itk               <none>     (no description available)
pn  apache2-mpm-prefork           <none>     (no description available)
ii  apache2-mpm-worker            2.2.16-6   Apache HTTP Server - high speed th

-- Configuration Files:
/etc/apache2/conf.d/security changed [not included]
/etc/apache2/mods-available/status.conf changed [not included]

-- no debconf information

Reply to: