summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changes-entries/apxs-i-wo-n.txt2
-rw-r--r--support/apxs.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/changes-entries/apxs-i-wo-n.txt b/changes-entries/apxs-i-wo-n.txt
new file mode 100644
index 0000000000..8adcfa1afb
--- /dev/null
+++ b/changes-entries/apxs-i-wo-n.txt
@@ -0,0 +1,2 @@
+ *) apxs: Fix -i in some cases where -n is not used.
+ [Jan Pazdziora <jpazdziora redhat.com>]
diff --git a/support/apxs.in b/support/apxs.in
index 65e1288527..4a99062577 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -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|^[^/]+/||;