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

Should not change the case of $logdir

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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • rhel-8.9.0
    • logwatch
    • None
    • Moderate
    • rhel-plumbers
    • ssg_core_services
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      If you have $logdir=/XXX in your logwatch.conf then it will instead try to
      access /xxx.  Currently the only way to access logs in a directory that contains
      capital letters seems to be creating a symlink with only lowercase letters.  EG
      "ln -s /XXX /xxx".

      Please provide the package NVR for which bug is seen:

      logwatch-7.4.3-21.el8.noarch

      How reproducible:

      always

      Steps to reproduce

      1. run the test     /CoreOS/logwatch/bz_tests

      Expected results

      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      ::   BZ#205104 BZ#1293621 BZ#1293624
      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      :: [ 10:23:02 ] :: [   PASS   ] :: Creating temporary exim log directory (Expected 0, got 0)
      :: [ 10:23:02 ] :: [   PASS   ] :: Creating fake exim log file (Expected 0, got 0)
      :: [ 10:23:02 ] :: [   PASS   ] :: Running logwatch for exim (Expected 0, got 0)
      :: [ 10:23:02 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.yEJy6UUC' should contain '/tmp/log-RHTS/exim/main.log'  
      :: [ 10:23:02 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.yEJy6UUC' should not contain '/tmp/log-rhts/exim/main.log'

      Actual results

      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      ::   BZ#205104 BZ#1293621 BZ#1293624
      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      :: [ 09:44:26 ] :: [   PASS   ] :: Creating temporary exim log directory (Expected 0, got 0)
      :: [ 09:44:26 ] :: [   PASS   ] :: Creating fake exim log file (Expected 0, got 0)
      :: [ 09:44:26 ] :: [   PASS   ] :: Running logwatch for exim (Expected 0, got 0)
      :: [ 09:44:26 ] :: [   FAIL   ] :: File '/var/tmp/rlRun_LOG.iZZQtm4K' should contain '/tmp/log-RHTS/exim/main.log'  
      :: [ 09:44:26 ] :: [   FAIL   ] :: File '/var/tmp/rlRun_LOG.iZZQtm4K' should not contain '/tmp/log-rhts/exim/main.log'

              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:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: