Skip to navigation

Bug Fix Advisory ksh bug fix update

Advisory: RHBA-2013:0042-1
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2013-01-07
Last updated on: 2013-01-07
Affected Products: RHEL Desktop Workstation (v. 5 client)
Red Hat Enterprise Linux (v. 5 server)

Details

Updated ksh packages that fix several bugs and add various enhancements are now
available for Red Hat Enterprise Linux 5.

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

Updated packages

RHEL Desktop Workstation (v. 5 client)

SRPMS:
ksh-20100621-12.el5.src.rpm
File outdated by:  RHBA-2014:0317
    MD5: fbe9d054b5c2d4903300392ef9b42e42
SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700
 
IA-32:
ksh-20100621-12.el5.i386.rpm
File outdated by:  RHBA-2014:0317
    MD5: cca998a21fef83f3fe320e6d528ae7a2
SHA-256: d0851d034d160da58d6ded93a53e7e5d7f3aeb6955fd3500196e66be28a594af
ksh-debuginfo-20100621-12.el5.i386.rpm
File outdated by:  RHBA-2014:0317
    MD5: e8172be00557a5f926529ebc0faf863e
SHA-256: b24579abd876902151f3a35884c05f93675077085e1887339051f08d1cbd0502
 
x86_64:
ksh-20100621-12.el5.x86_64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 84ed036597623c94b5188b20c5e350ce
SHA-256: ae026e19e7e30439587c4165b7763494a065017561f730b6069ef3c346caf38c
ksh-debuginfo-20100621-12.el5.x86_64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 0b2d550bd90ba01a2c97e3dfd3ae8234
SHA-256: 29651866111d5501e6fdd394d8402bce2aabe20c4a17f17680eb50e14adf2d47
 
Red Hat Enterprise Linux (v. 5 server)

SRPMS:
ksh-20100621-12.el5.src.rpm
File outdated by:  RHBA-2014:0317
    MD5: fbe9d054b5c2d4903300392ef9b42e42
SHA-256: 6a0911b8c682ff1d98ff2c9977d42b43bfe50066061b24a05d776594be7ba700
 
IA-32:
ksh-20100621-12.el5.i386.rpm
File outdated by:  RHBA-2014:0317
    MD5: cca998a21fef83f3fe320e6d528ae7a2
SHA-256: d0851d034d160da58d6ded93a53e7e5d7f3aeb6955fd3500196e66be28a594af
ksh-debuginfo-20100621-12.el5.i386.rpm
File outdated by:  RHBA-2014:0317
    MD5: e8172be00557a5f926529ebc0faf863e
SHA-256: b24579abd876902151f3a35884c05f93675077085e1887339051f08d1cbd0502
 
IA-64:
ksh-20100621-12.el5.ia64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 73cb248931ba5a975a0dbc5f760f7b33
SHA-256: 693c41ba973db55f5c047d53546576cfab9c14b78e41cbc2c53adc826ee79471
ksh-debuginfo-20100621-12.el5.ia64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 1d03870b64fee0828fa58c92a8eaea66
SHA-256: ccbe0d8481f4559bf88c3d6d1b4b7f7bee978e39ad36d0e8f0ae79308b6e4cc4
 
PPC:
ksh-20100621-12.el5.ppc.rpm
File outdated by:  RHBA-2014:0317
    MD5: 779803c6663a69ae5bbb61da127e914d
SHA-256: 0b306086b56e12d9533f840288d0abc85521fb51b1436cecedead6aa474a6e2c
ksh-debuginfo-20100621-12.el5.ppc.rpm
File outdated by:  RHBA-2014:0317
    MD5: c2df304ca53d30ca0f860a6871e93e92
SHA-256: 028193bfb475c97e6b47f40eb293cf43786c3ae98e263fb10bba40dacf067296
 
s390x:
ksh-20100621-12.el5.s390x.rpm
File outdated by:  RHBA-2014:0317
    MD5: 2ba670438a3f9d605246c475c5c073f5
SHA-256: f82334e8a2e4013fa4566f45ce3081fa6f0908bdc8c7856245e48fbf211db018
ksh-debuginfo-20100621-12.el5.s390x.rpm
File outdated by:  RHBA-2014:0317
    MD5: e87ae481841a32d2c5af11840e89d853
SHA-256: c4bd2da83af76954d724cdb8017bfa0526f4b521b8403688893adabe5a4efef3
 
x86_64:
ksh-20100621-12.el5.x86_64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 84ed036597623c94b5188b20c5e350ce
SHA-256: ae026e19e7e30439587c4165b7763494a065017561f730b6069ef3c346caf38c
ksh-debuginfo-20100621-12.el5.x86_64.rpm
File outdated by:  RHBA-2014:0317
    MD5: 0b2d550bd90ba01a2c97e3dfd3ae8234
SHA-256: 29651866111d5501e6fdd394d8402bce2aabe20c4a17f17680eb50e14adf2d47
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

802565 - Tilda expansion failing in ksh



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/