From 6774b6d30e1d50b0e7f02879e67078d6f8041181 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Fri, 10 Mar 2017 13:09:15 +0100 Subject: [PATCH] add /usr/bin/ksh to /etc/shells (#1381113) --- ksh.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ksh.spec b/ksh.spec index a67f966..b1d243b 100644 --- a/ksh.spec +++ b/ksh.spec @@ -9,7 +9,7 @@ Group: System Environment/Shells #CPL everywhere else (for KSH itself) License: CPL Version: %{releasedate} -Release: 31%{?dist} +Release: 32%{?dist} Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{release_date}.tgz Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{release_date}.tgz Source2: kshcomp.conf @@ -320,10 +320,14 @@ fi %post if [ ! -f /etc/shells ]; then echo "/bin/ksh" > /etc/shells + echo "/usr/bin/ksh" >> /etc/shells else if ! grep -q '^/bin/ksh$' /etc/shells ; then echo "/bin/ksh" >> /etc/shells fi + if ! grep -q '^/usr/bin/ksh$' /etc/shells ; then + echo "/usr/bin/ksh" >> /etc/shells + fi fi /bin/systemctl try-restart systemd-binfmt.service >/dev/null 2>&1 || : @@ -332,6 +336,9 @@ fi if [ ! -f /bin/ksh ]; then sed -i '/^\/bin\/ksh$/ d' /etc/shells fi +if [ ! -f /usr/bin/ksh ]; then + sed -i '/^\/usr\/bin\/ksh$/ d' /etc/shells +fi %verifyscript echo -n "Looking for ksh in /etc/shells... " @@ -357,6 +364,9 @@ fi rm -rf $RPM_BUILD_ROOT %changelog +* Fri Mar 10 2017 Michal Hlavinka - 20120801-32 +- add /usr/bin/ksh to /etc/shells (#1381113) + * Fri Mar 03 2017 Michal Hlavinka - 20120801-31 - use latest set of patches