RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1017109 - Error: print() on closed filehandle
Summary: Error: print() on closed filehandle
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: logwatch
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Synacek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1082014
TreeView+ depends on / blocked
 
Reported: 2013-10-09 09:30 UTC by pb+red-hat
Modified: 2015-10-12 13:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1082014 (view as bug list)
Environment:
Last Closed: 2015-10-12 13:55:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix bug (529 bytes, patch)
2013-10-09 09:30 UTC, pb+red-hat
no flags Details | Diff

Description pb+red-hat 2013-10-09 09:30:36 UTC
Created attachment 809814 [details]
Patch to fix bug

Description of problem:

After setting the following options in the logwatch.conf

SplitHosts = yes
MultiEmail = yes

The following error message is printed multiple times to stderr but the mails send look ok.

print() on closed filehandle OUTFILE at /usr/sbin/logwatch line 1321.


Version-Release number of selected component (if applicable):

7.3.6-49


How reproducible:

Tested on different hosts with the same result.


Steps to Reproduce:
1. Use a centralized syslog server
2. Set the specified config options in the logwatch config
3. Run logwatch


Actual results:

Displays error messages


Expected results:

No error messages


Additional info:

I have attached a patch that fixes the problem for me.

Comment 2 RHEL Program Management 2013-10-13 23:01:36 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Marcel Kolaja 2014-03-28 15:50:30 UTC
Please, see an alternative patch in bug #1082014 (which is the same bug for RHEL 5). That one takes a different approach, which is in line with the approach taken by upstream.


Note You need to log in before you can comment on or make changes to this bug.