Bug 675128 - wrong redirections with SIGPIPE traps
Summary: wrong redirections with SIGPIPE traps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ksh
Version: 5.5
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On: 615284
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 12:24 UTC by RHEL Program Management
Modified: 2018-11-14 19:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When a ksh script contained the "trap" command to capture a "SIGPIPE" signal, sending this signal by using the built-in "echo" command could cause its output to be incorrectly added to the redirected output of an external command. This error has been fixed, and ksh now flushes the output buffer before redirecting output streams.
Clone Of:
Environment:
Last Closed: 2011-02-28 09:52:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0304 0 normal SHIPPED_LIVE ksh bug fix update 2011-02-28 09:51:56 UTC

Description RHEL Program Management 2011-02-04 12:24:59 UTC
This bug has been copied from bug #615284 and has been proposed
to be backported to 5.6 z-stream (EUS).

Comment 5 Jaromir Hradilek 2011-02-07 14:55:50 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When a ksh script contained the "trap" command to capture a "SIGPIPE" signal, sending this signal by using the built-in "echo" command could cause its output to be incorrectly added to the redirected output of an external command. This error has been fixed, and ksh now flushes the output buffer before redirecting output streams.

Comment 6 Branislav Náter 2011-02-23 12:14:56 UTC
Bugfix was verified using scenarios from bz615284 on package ksh-20100202-1.el5_6.3.{i386, ia64, ppc, s390x, x86_64}.
Output of built-in echo command no longer appears in redirect file.

Comment 7 errata-xmlrpc 2011-02-28 09:52:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0304.html


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