Package: apache2.2-common
Version: 2.2.9-10+lenny4
Severity: normal
Tags: patch
In the a2ensite helper for bash_completion, there is an unfortunate
substition expression that rips part of the completed filename when it
contains the 'load' or 'conf' string.
example with configuration files like
/etc/apache2/sites-available/testconf
/etc/apache2/sites-available/www.loaded.com
/etc/apache2/sites-available/www.reload.com
/etc/apache2/sites-available/www.reloaded.com
this would auto-complete with
$ a2ensite <TAB>
tes wwwed.com www.r.com www.red.com
with the proposed patch applied, we get
$ a2ensite <TAB>
testconf www.loaded.com www.reload.com www.reloaded.com
--- /tmp/bash_completion.d/apache2.2-common.orig 2010-03-02 15:18:05.000000000 +0100
+++ /etc/bash_completion.d/apache2.2-common 2010-03-02 15:18:40.000000000 +0100
@@ -4,7 +4,7 @@
_apache2_modsites()
{
COMPREPLY=( $( compgen -W '$( command ls /etc/apache2/$1 2>/dev/null \
- | sed -e 's/\.load//' -e 's/\.conf//' )' -- $cur ) )
+ | sed -e 's/\\\\.load$//' -e 's/\\\\.conf$//' )' -- $cur ) )
}
_a2enmod()
-- Package-specific info:
List of enabled modules from 'apache2 -M':
alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi deflate dir env mime
negotiation php5 setenvif status
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.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.9-10+lenny4 utility programs for webservers
ii libapr1 1.2.12-5 The Apache Portable Runtime Librar
ii libaprutil1 1.2.12+dfsg-8 The Apache Portable Runtime Utilit
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libmagic1 4.26-1 File type determination library us
ii libssl0.9.8 0.9.8k-6 SSL shared libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii net-tools 1.60-22 The NET-3 networking toolkit
ii perl 5.10.0-19 Larry Wall's Practical Extraction
ii procps 1:3.2.7-11 /proc file system utilities
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages apache2.2-common recommends:
ii ssl-cert 1.0.23 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 iceweasel [www-browser] 3.5.5-1 lightweight web browser based on M
ii midori [www-browser] 0.1.8-1 fast, lightweight graphical web br
ii w3m [www-browser] 0.5.2-2+b1 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)
ii apache2-mpm-prefork 2.2.9-10+lenny4 Apache HTTP Server - traditional n
pn apache2-mpm-worker <none> (no description available)
-- no debconf information
--
Rémi Laurent
Phone: +352 26 10 30 61
General Support: support@conostix.com
Managed Services Support: support@lcms.lu
GPG FP: 27F4 6810 2B0E 1AA0 CDAE 7C7B 3DC9 085A 0FA0 0601
Attachment:
signature.asc
Description: Digital signature