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

Bug#197990: apache: postinst does not allow directory includes



Package: apache
Version: 1.3.27.0-1
Severity: normal


The postinst script contains an awk script which parses include files.
However, apache allows the user to specify a directory for inclusion
(and will recursively include all files under that directory).

>From http://httpd.apache.org/docs/mod/core.html#include --

    The file path specified may be a fully qualified path (i.e.
    starting with a slash), or may be relative to the ServerRoot
    directory.

    New in Apache 1.3.13 is the feature that if Include points to a
    directory, rather than a file, Apache will read all files in that
    directory, and any subdirectory, and parse those as configuration
    files.

    By using a wildcard this can be further limited to, say, just the
    '*.conf' files.

The error message was reproduced with:

bunny:/tmp/lj/cvs# dpkg-reconfigure apache
awk: cmd. line:2: fatal: file `/etc/apache/vhosts/' is a directory
awk: cmd. line:1: (FILENAME=/etc/apache/srm.conf FNR=8) fatal: file `/etc/apache/vhosts/' is a directory
Reloading apache modulesProcessing config directory: /etc/apache/vhosts/


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bunny.tr0n.com 2.4.18 #3 Thu May 9 05:12:47 EDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache depends on:
ii  apache-common                 1.3.27.0-1 Support files for all Apache webse
ii  dpkg                          1.10.10    Package maintenance system for Deb
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an
ii  libdb4.1                      4.1.25-4   Berkeley v4.1 Database Libraries [
ii  libexpat1                     1.95.6-4   XML parsing C library - runtime li
ii  logrotate                     3.6.5-2    Log rotation utility
ii  mime-support                  3.23-1     MIME files 'mime.types' & 'mailcap
ii  perl [perl5]                  5.8.0-18   Larry Wall's Practical Extraction 

-- no debconf information




Reply to: