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

Bug#340955: apache2-common: default /etc/apache2/apache2.conf uses non-POSIX globs in Includes

Package: apache2-common
Version: 2.0.55-3
Severity: normal

The lines
Include /etc/apache2/conf.d/[^.#]*
Include /etc/apache2/sites-enabled/[^.#]*
work perfectly well for apache but /etc/init.d/apache2 uses the glob
patterns provided by them in a /bin/sh script context.
And POSIX specifies only the exclamation mark as the exclude list
So this is in effect a bashism resulting in not grepping the correct
files in conf.d and sites-enabled when /bin/sh is eg. dash.

And because I have no files starting with '^', '.' or '#' in these
directories every day cron says:

grep: /etc/apache2/conf.d/[^.#]*: No such file or directory
grep: /etc/apache2/sites-enabled/[^.#]*: No such file or directory

Changing the '^' to '!' in the Include directives helps.

-- System Information:
Shell:  /bin/sh linked to /bin/dash

Michał Politowski
Talking has been known to lead to communication if practiced carelessly.

Attachment: signature.asc
Description: Digital signature

Reply to: