]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
apxs: Fix -i for some cases where -n is not used.
authorJoe Orton <jorton@apache.org>
Fri, 7 Jul 2023 07:57:35 +0000 (07:57 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 7 Jul 2023 07:57:35 +0000 (07:57 +0000)
The $base was already stripped of suffix in typical case.

Submitted by: Jan Pazdziora <jpazdziora redhat.com>
Github: closes #359

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910841 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/apxs-i-wo-n.txt [new file with mode: 0644]
support/apxs.in

diff --git a/changes-entries/apxs-i-wo-n.txt b/changes-entries/apxs-i-wo-n.txt
new file mode 100644 (file)
index 0000000..8adcfa1
--- /dev/null
@@ -0,0 +1,2 @@
+  *) apxs: Fix -i in some cases where -n is not used.
+     [Jan Pazdziora <jpazdziora redhat.com>]
index 65e1288527da4c60153f1becdd3d1d9ca2ffe78e..4a9906257790c33620a1f612f457833274dd5c21 100644 (file)
@@ -538,7 +538,7 @@ if ($opt_i or $opt_e) {
                 }
             }
             if ($name eq '') {
-                if ($base =~ m|.*mod_([a-zA-Z0-9_]+)\..+|) {
+                if ($base =~ m/.*mod_([a-zA-Z0-9_]+)(\..+|$)/) {
                     $name = "$1";
                     $filename = $base;
                     $filename =~ s|^[^/]+/||;