- Issued:
- 2013-01-07
- Updated:
- 2013-01-07
RHBA-2013:0042 - Bug Fix Advisory
Synopsis
ksh bug fix update
Type/Severity
Bug Fix Advisory
Red Hat Insights patch analysis
Identify and remediate systems affected by this advisory.
Topic
Updated ksh packages that fix several bugs and add various enhancements are now
available for Red Hat Enterprise Linux 5.
Description
KSH-93 is the most recent version of the KornShell by David Korn of AT&T Bell
Laboratories. KornShell is a shell programming language which is also compatible
with sh, the original Bourne Shell.
This update fixes the following bugs:
- Prior to this update, using the -R or -Z options of the typeset command did
not work as expected. When a variable was assigned to a field that was of
smaller size than the size of the variable, it would trim the incorrect values
from the variable. Consequently, the resulting value in the trimmed variable was
incorrect. The underlying source code has been modified and the typeset -R/-Z
command works as expected. (BZ#771188)
- Previously, ksh did not expand the tilde (~) character properly. For example,
characters in the tilde prefix were not treated as a login name but as a part of
the path and the "No such file or directory" message was displayed. The
underlying source code has been modified and tilde expansion now works as
expected in such a scenario. (BZ#802565)
- In certain cases, ksh unnecessarily called the vfork() function. An extra
process was created and it could be difficult to determine how many instances of
a script were running. A patch has been applied to address this problem, and
extra processes are no longer created if not required. (BZ#804925)
- Due to a missing patch that introduced the tsetio flag, the redirect output
behavior changed depending on what ksh version was used. With this update, the
missing patch was added and redirect output behavior is now consistent across
all versions of ksh. (BZ#811318)
- Previously, ksh did not close certain file descriptors prior to execution.
This could lead to a file descriptor leak, and certain applications could
consequently report error messages. With this update, file descriptors are
marked to be closed on execution if appropriate, so file descriptor leaks no
longer occur. (BZ#812930)
- Due to a bug in the typeset command, when executed with the -Z option, output
was being formatted to an incorrect width. As a result, exporting a
right-aligned variable of smaller size than the predefined field size caused it
to not be prepended with 0 characters. With this update, the typeset command
works as expected in the aforementioned scenario. (BZ#827522)
- Previously, ksh did not allocate the correct amount of memory for its data
structures containing information about file descriptors. When running a task
that used file descriptors extensively, ksh terminated unexpectedly with a
segmentation fault. With this update, the proper amount of memory is allocated,
and ksh no longer crashes if file descriptors are used extensively. (BZ#827613)
All users of the ksh are advised to upgrade to these updated packages, which fix
these bugs.
Solution
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.
This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258
Affected Products
- Red Hat Enterprise Linux Server 5 x86_64
- Red Hat Enterprise Linux Server 5 ia64
- Red Hat Enterprise Linux Server 5 i386
- Red Hat Enterprise Linux Workstation 5 x86_64
- Red Hat Enterprise Linux Workstation 5 i386
- Red Hat Enterprise Linux for IBM z Systems 5 s390x
- Red Hat Enterprise Linux for Power, big endian 5 ppc
- Red Hat Enterprise Linux Server from RHUI 5 x86_64
- Red Hat Enterprise Linux Server from RHUI 5 i386
Fixes
- BZ - 802565 - Tilda expansion failing in ksh
CVEs
(none)
References
(none)
Red Hat Enterprise Linux Server 5
SRPM | |
---|---|
ksh-20100621-12.el5.src.rpm | SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700 |
x86_64 | |
ksh-20100621-12.el5.x86_64.rpm | SHA-256: ae026e19e7e30439587c4165b7763494a065017561f730b6069ef3c346caf38c |
ksh-debuginfo-20100621-12.el5.x86_64.rpm | SHA-256: 29651866111d5501e6fdd394d8402bce2aabe20c4a17f17680eb50e14adf2d47 |
ia64 | |
ksh-20100621-12.el5.ia64.rpm | SHA-256: 693c41ba973db55f5c047d53546576cfab9c14b78e41cbc2c53adc826ee79471 |
ksh-debuginfo-20100621-12.el5.ia64.rpm | SHA-256: ccbe0d8481f4559bf88c3d6d1b4b7f7bee978e39ad36d0e8f0ae79308b6e4cc4 |
i386 | |
ksh-20100621-12.el5.i386.rpm | SHA-256: d0851d034d160da58d6ded93a53e7e5d7f3aeb6955fd3500196e66be28a594af |
ksh-debuginfo-20100621-12.el5.i386.rpm | SHA-256: b24579abd876902151f3a35884c05f93675077085e1887339051f08d1cbd0502 |
Red Hat Enterprise Linux Workstation 5
SRPM | |
---|---|
ksh-20100621-12.el5.src.rpm | SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700 |
x86_64 | |
ksh-20100621-12.el5.x86_64.rpm | SHA-256: ae026e19e7e30439587c4165b7763494a065017561f730b6069ef3c346caf38c |
ksh-debuginfo-20100621-12.el5.x86_64.rpm | SHA-256: 29651866111d5501e6fdd394d8402bce2aabe20c4a17f17680eb50e14adf2d47 |
i386 | |
ksh-20100621-12.el5.i386.rpm | SHA-256: d0851d034d160da58d6ded93a53e7e5d7f3aeb6955fd3500196e66be28a594af |
ksh-debuginfo-20100621-12.el5.i386.rpm | SHA-256: b24579abd876902151f3a35884c05f93675077085e1887339051f08d1cbd0502 |
Red Hat Enterprise Linux for IBM z Systems 5
SRPM | |
---|---|
ksh-20100621-12.el5.src.rpm | SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700 |
s390x | |
ksh-20100621-12.el5.s390x.rpm | SHA-256: f82334e8a2e4013fa4566f45ce3081fa6f0908bdc8c7856245e48fbf211db018 |
ksh-debuginfo-20100621-12.el5.s390x.rpm | SHA-256: c4bd2da83af76954d724cdb8017bfa0526f4b521b8403688893adabe5a4efef3 |
Red Hat Enterprise Linux for Power, big endian 5
SRPM | |
---|---|
ksh-20100621-12.el5.src.rpm | SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700 |
ppc | |
ksh-20100621-12.el5.ppc.rpm | SHA-256: 0b306086b56e12d9533f840288d0abc85521fb51b1436cecedead6aa474a6e2c |
ksh-debuginfo-20100621-12.el5.ppc.rpm | SHA-256: 028193bfb475c97e6b47f40eb293cf43786c3ae98e263fb10bba40dacf067296 |
Red Hat Enterprise Linux Server from RHUI 5
SRPM | |
---|---|
ksh-20100621-12.el5.src.rpm | SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700 |
x86_64 | |
ksh-20100621-12.el5.x86_64.rpm | SHA-256: ae026e19e7e30439587c4165b7763494a065017561f730b6069ef3c346caf38c |
ksh-debuginfo-20100621-12.el5.x86_64.rpm | SHA-256: 29651866111d5501e6fdd394d8402bce2aabe20c4a17f17680eb50e14adf2d47 |
i386 | |
ksh-20100621-12.el5.i386.rpm | SHA-256: d0851d034d160da58d6ded93a53e7e5d7f3aeb6955fd3500196e66be28a594af |
ksh-debuginfo-20100621-12.el5.i386.rpm | SHA-256: b24579abd876902151f3a35884c05f93675077085e1887339051f08d1cbd0502 |
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.