[pkg-lighttpd] Bug#352577: /usr/sbin/lighty-enable-mod: doesn't offer to enable 10-simple-vhost.conf

Silvestre Zabala silvestre at zabala.name
Sun Feb 12 19:39:38 UTC 2006


Package: lighttpd
Version: 1.4.10-1
Severity: normal
File: /usr/sbin/lighty-enable-mod
Tags: patch

The following simple patch fixes this bug:

--- lighty-enable-mod.old       2006-01-19 12:50:40.000000000 +0100
+++ lighty-enable-mod   2006-02-12 20:36:40.000000000 +0100
@@ -37,7 +37,7 @@
 my @files = bsd_glob($confdir.'conf-available/*.conf');
 print "Available modules: ";
 foreach my $file (@files) {
-       if (basename($file) =~ /^\d{2}\-(\w+)\.conf$/) {
+       if (basename($file) =~ /^\d{2}\-([\-\w]+)\.conf$/) {
                $available{$1} = $file;
                print qq{$1 };
        }
@@ -48,7 +48,7 @@
 @files = bsd_glob($confdir.'conf-enabled/*.conf');
 print "Already enabled modules: ";
 foreach my $file (@files) {
-       if (basename($file) =~ /^\d{2}\-(\w+)\.conf$/) {
+       if (basename($file) =~ /^\d{2}\-([\-\w]+)\.conf$/) {
                $enabled{$1} = $file;
                print qq{$1 };
        }

Best regards,
  Silvestre

-- 
http://silvestre.zabala.name/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lighttpd-maintainers/attachments/20060212/3f2d34c6/attachment.pgp


More information about the pkg-lighttpd-maintainers mailing list