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/

Attachment: signature.asc
Description: Digital signature

Reply via email to