Bug 2232322

Summary: logwatch converts logdir path to lowercase
Product: Red Hat Enterprise Linux 8 Reporter: Karel Volný <kvolny>
Component: logwatchAssignee: Lukáš Nykrýn <lnykryn>
Status: NEW --- QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Volný 2023-08-16 10:00:08 UTC
Description of problem:
Trying to write a test for logwatch, I have found that it ignores cafted log file passed via the --logdir option. The root cause seems to be that it converts the patch to lowercase.

Version-Release number of selected component (if applicable):
logwatch-7.4.3-21.el8.noarch

How reproducible:
always

Steps to Reproduce:
1. logwatch --service=fail2ban --range=all --logdir="/mnt/tests/CoreOS/logwatch/Regression/bz2043944-logwatch-for-fail2ban-should-ignore-Server-ready" --debug=6 2>/dev/null | grep logdir

Actual results:
logdir -> /mnt/tests/coreos/logwatch/regression/bz2043944-logwatch-for-fail2ban-should-ignore-server-ready

Expected results:
logdir -> /mnt/tests/CoreOs/logwatch/Regression/bz2043944-logwatch-for-fail2ban-should-ignore-server-ready

Additional info: