From 6603fc96a1c499ce79982d800625611493a14e3f Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Mar 10 2017 12:16:21 +0000 Subject: add /usr/bin/ksh to /etc/shells (#1381113) --- 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