Bug 12213

Summary: Since Core 136, a bug in 'logwatch 7.4.3' leads to a warning in "Log summary / httpd"
Product: IPFire Reporter: Matthias Fischer <matthias.fischer>
Component: ---Assignee: Assigned to nobody - feel free to grab it and work on it <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: Aesthetic Issue    
Priority: - Unknown - CC: michael.tremer
Version: 2   
Hardware: all   
OS: Linux   

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 ***