Bug 1082014
| Summary: | Error: print() on closed filehandle | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Marcel Kolaja <mkolaja> |
| Component: | logwatch | Assignee: | Jan Synacek <jsynacek> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.11 | CC: | pb+red-hat |
| Target Milestone: | rc | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1017109 | Environment: | |
| Last Closed: | 2014-10-08 18:00:31 UTC | 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: | |||
| Bug Depends On: | 1017109 | ||
| Bug Blocks: | |||
| Attachments: | |||
Created attachment 879861 [details] proposed patch based on the patch from bug #1017109 Created attachment 879913 [details] proposed alternative (preferred) patch to be in line with the approach taken in upstream upstream bug: http://sourceforge.net/p/logwatch/bugs/14/ RHEL 5 is now in Production Phase 3. https://access.redhat.com/support/policy/updates/errata/#Production_3_Phase No further minor release are planned for this product. This BZ is being closed as it does not meet phase 3 inclusion criteria. |
Created attachment 879837 [details] messages file to reproduce the issue Reproducer: 1. place the attached file in /var/tmp/messages 2. run the following command: # logwatch --logdir /var/tmp/ --logfile messages --print --range All --splithosts > /dev/null Actual results: Displays the following error message: print() on unopened filehandle OUTFILE at /etc/cron.daily/0logwatch line 1293. Expected results: no error message The issue occurs only when both of the following conditions are met: (i) there are multiple hosts in the log file (ii) the --splithosts option is used