Recommended update for mksh

Announcement ID: SUSE-RU-2017:1101-1
Rating: moderate
References:
Affected Products:
  • SUSE Linux Enterprise Desktop 12 SP1
  • SUSE Linux Enterprise Desktop 12 SP2
  • SUSE Linux Enterprise High Performance Computing 12 SP2
  • SUSE Linux Enterprise Server 12 SP1
  • SUSE Linux Enterprise Server 12 SP2
  • SUSE Linux Enterprise Server for SAP Applications 12 SP1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP2
  • SUSE Linux Enterprise Server for the Raspberry Pi 12-SP2

An update that has three fixes can now be installed.

Description:

This update provides mksh R50f, which brings several fixes and enhancements:

  • Fix printing of negative integer values with 'print -R'. (bsc#1023419)
  • Make unset HISTFILE actually work. (bsc#1029664)
  • Do not permit += from environment. (bsc#1029664)
  • Handle integer base out of band like ksh93 does.
  • Protect standard code (predefined aliases, internal code, aliases and functions in dot.mkshrc) from being overridden by aliases and, in some cases, shell functions.
  • Implement GNU bash's enable for dot.mkshrc using magic aliases to redirect the builtins to external utilities; this differs from GNU bash in that enable takes precedence over functions.
  • Move unaliasing an identifier when defining a POSIX-style function with the same name into lksh, for compatibility.
  • Korn shell style functions now have locally scoped shell options.
  • Fix read -n-1 to not be identical to read -N-1.
  • Several fixes and improvements to lksh(1) and mksh(1) man pages.
  • Fix issues with IFS='\' read.
  • Fix integer overflows related to file descriptor parsing, reduce memory usage for I/O redirs.
  • Fix miscalculating required memory for encoding the double-quoted parts of a here document or here string delimiter, leading to a buffer overflow.
  • Add options -a argv0 and -c to exec.
  • Prevent use-after-free when hitting multiple errors unwinding.
  • Fix use of $* and $@ in scalar context: within [[ ... ]] and after case and in here documents.
  • Fix set -x in PS4 expansion infinite loop.
  • Fix rare infinite loop with invalid UTF-8 in the edit buffer.
  • Make the cat(1) builtin also interruptible in the write loop, not just in the read loop.
  • We use update-alternatives so there is no need to obsolete ksh.

For a comprehensive list of changes please refer to the package's change log.

Patch Instructions:

To install this SUSE update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:

  • SUSE Linux Enterprise Desktop 12 SP1
    zypper in -t patch SUSE-SLE-DESKTOP-12-SP1-2017-641=1
  • SUSE Linux Enterprise Desktop 12 SP2
    zypper in -t patch SUSE-SLE-DESKTOP-12-SP2-2017-641=1
  • SUSE Linux Enterprise Server for the Raspberry Pi 12-SP2
    zypper in -t patch SUSE-SLE-RPI-12-SP2-2017-641=1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP1
    zypper in -t patch SUSE-SLE-SERVER-12-SP1-2017-641=1
  • SUSE Linux Enterprise Server 12 SP1
    zypper in -t patch SUSE-SLE-SERVER-12-SP1-2017-641=1
  • SUSE Linux Enterprise High Performance Computing 12 SP2
    zypper in -t patch SUSE-SLE-SERVER-12-SP2-2017-641=1
  • SUSE Linux Enterprise Server 12 SP2
    zypper in -t patch SUSE-SLE-SERVER-12-SP2-2017-641=1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP2
    zypper in -t patch SUSE-SLE-SERVER-12-SP2-2017-641=1

Package List:

  • SUSE Linux Enterprise Desktop 12 SP1 (x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Desktop 12 SP2 (x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Server for the Raspberry Pi 12-SP2 (aarch64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP1 (ppc64le x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Server 12 SP1 (ppc64le s390x x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise High Performance Computing 12 SP2 (aarch64 x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Server 12 SP2 (aarch64 ppc64le s390x x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP2 (ppc64le x86_64)
    • mksh-50f-5.1
    • mksh-debuginfo-50f-5.1
    • mksh-debugsource-50f-5.1

References: