File: apache_globs.patch

package info (click to toggle)
libconfig-apacheformat-perl 1.2-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 936 kB
  • sloc: perl: 410; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Update to work with apache file globs
 such as Include /etc/apache2/mods-enabled/*.load
Author: Stephen Gran <sgran@debian.org>
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=7537

--- a/ApacheFormat.pm
+++ b/ApacheFormat.pm
@@ -599,6 +599,8 @@ sub _read {
                                      "line $$line_num: $!");
                         @files = map { "$f/$_" } sort grep { -f "$f/$_" } readdir INCD;
                         closedir(INCD);
+                    } elsif ($f =~ /\*/) { # Apache file glob
+                        @files = glob $f;
                     } else {
                         @files = $f;
                     }