Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5821

logwatch converts logdir path to lowercase

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • rhel-8.4.0
    • logwatch
    • None
    • Moderate
    • rhel-plumbers
    • ssg_core_services
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      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:

              psimovec Pavel Šimovec
              kvolny Karel Volný
              Pavel Šimovec Pavel Šimovec
              RHEL CS Plumbers QE Bot RHEL CS Plumbers QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: