Skip to navigation

Bug Fix Advisory sed bug fix update

Advisory: RHBA-2011:0397-2
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2011-07-21
Last updated on: 2011-07-21
Affected Products: Red Hat Enterprise Linux (v. 5 server)
Red Hat Enterprise Linux Desktop (v. 5 client)

Details

An updated sed package that fixes two bugs is now available for Red Hat
Enterprise Linux 5.

Sed is a stream or batch (non-interactive) editor. Sed takes text as input,
performs an operation or set of operations on the text, and outputs the modified
text.

This update fixes the following bugs:

* Due to an error in a symbolic link resolution, an attempt to use in-place
substitution (that is, the "-i" command line option) with a symbolic link caused
sed to fail with the following error:

sed: ck_follow_symlink: couldn't lstat [symbolic_link]/[original_file]: Not a
directory

With this update, when a symbolic link is supplied, sed determines the original
file path correctly. As a result, using the in-place substitution on symbolic
links now works as expected. (BZ#490473)

* Previously, when an input stream contained a wide character that ended with
U+005C (that is, the '\' character), sed failed to process it and reported a
syntax error. This update applies an upstream patch that ensures the wide
characters are now processed as expected. Additionally, this update also
prevents sed from entering an infinite loop while handling incomplete string
sequences. (BZ#527427)

All users of sed are advised to upgrade to this updated package, which fixes
these bugs.


Solution

Before applying this update, make sure that all previously-released errata
relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use the Red
Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

Updated packages

Red Hat Enterprise Linux (v. 5 server)

SRPMS:
sed-4.1.5-8.el5.src.rpm     MD5: d03d379e1f648a63eb1a02fe1132df87
SHA-256: 149fd2108a668e7effe54d025504400a482f38c23b78a05c6318c28b9967ed99
 
IA-32:
sed-4.1.5-8.el5.i386.rpm     MD5: b58c17fc9dbd4cc87a9172cd8805b210
SHA-256: 9688567a9e97acce83d4928d73f270d1b853d93c535d85783404897f7c0f05d9
 
IA-64:
sed-4.1.5-8.el5.ia64.rpm     MD5: ded585c9aacbd57a5e1e7f685e061bd7
SHA-256: 2696d7c60c894da125233ba09895bb86f84ff5b68365443499d9d331697553b4
 
PPC:
sed-4.1.5-8.el5.ppc.rpm     MD5: 39a8fa2a06f158e2bc4fd981f77ed266
SHA-256: 6c5ea9f8a27852bea3890f213df6762c47f382f32a5fd721f8bb8f54185f4a9c
 
s390x:
sed-4.1.5-8.el5.s390x.rpm     MD5: 8da14140e20c092585006ad4aa842670
SHA-256: 87a548fc7c1bbb615fb5f37279298d3fa38e331a60dde0c8187d2e00abcf105a
 
x86_64:
sed-4.1.5-8.el5.x86_64.rpm     MD5: 62fc7da8a8c93776474b7be729495c85
SHA-256: ac1bf28eb4fd5c2e2a0932a12102005fe1e813f86a1c56b87ce7991273218cea
 
Red Hat Enterprise Linux Desktop (v. 5 client)

SRPMS:
sed-4.1.5-8.el5.src.rpm     MD5: d03d379e1f648a63eb1a02fe1132df87
SHA-256: 149fd2108a668e7effe54d025504400a482f38c23b78a05c6318c28b9967ed99
 
IA-32:
sed-4.1.5-8.el5.i386.rpm     MD5: b58c17fc9dbd4cc87a9172cd8805b210
SHA-256: 9688567a9e97acce83d4928d73f270d1b853d93c535d85783404897f7c0f05d9
 
x86_64:
sed-4.1.5-8.el5.x86_64.rpm     MD5: 62fc7da8a8c93776474b7be729495c85
SHA-256: ac1bf28eb4fd5c2e2a0932a12102005fe1e813f86a1c56b87ce7991273218cea
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

490473 - sed does not handle inline edits of symlinks with no dir portion
527427 - sed reports syntax errors with some multibyte characters



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/