Bug 12213 - Since Core 136, a bug in 'logwatch 7.4.3' leads to a warning in "Log summary / httpd"
Summary: Since Core 136, a bug in 'logwatch 7.4.3' leads to a warning in "Log summary ...
Status: CLOSED DUPLICATE of bug 12212
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: all Linux
: - Unknown - Aesthetic Issue
Assignee: Assigned to nobody - feel free to grab it and work on it
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-19 19:01 UTC by Matthias Fischer
Modified: 2019-10-20 08:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fischer 2019-10-19 19:01:57 UTC
Hi,

Since Core 136 I get the following message in "Log Summary / httpd":

"Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/\G%({ <-- HERE .*?})?./ at /usr/share/logwatch/scripts/services/http line 319."

This is due to *two* unescaped curly braces in '/usr/share/logwatch/scripts/services/http'.

In '7.4.3', line 319 reads:

...
} elsif ($logformat =~ /\G%({.*?})?./gc) {
...

It should be:
...
} elsif ($logformat =~ /\G%(\{.*?\})?./gc) {
...

This is fixed in the current version 'logwatch 7.5.2'.

After our vacation, I'll send an update.
Comment 1 Michael Tremer 2019-10-20 08:52:29 UTC

*** This bug has been marked as a duplicate of bug 12212 ***