From 38a969f247f60d6248376249e0e4b8ed02e96432 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Apr 2020 05:42:30 -0400 Subject: [PATCH] import which-2.21-12.el8 --- SOURCES/which2.sh | 2 +- SPECS/which.spec | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/SOURCES/which2.sh b/SOURCES/which2.sh index d7e5373..25dd0de 100644 --- a/SOURCES/which2.sh +++ b/SOURCES/which2.sh @@ -1,6 +1,6 @@ # Initialization script for bash and sh -if [ "$0" = ksh ] ; then +if [ "$0" = "ksh" ] || [ "$0" = "-ksh" ] ; then alias which='(alias; typeset -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot' else alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot' diff --git a/SPECS/which.spec b/SPECS/which.spec index 97b3c7c..8f7f303 100644 --- a/SPECS/which.spec +++ b/SPECS/which.spec @@ -1,7 +1,7 @@ Summary: Displays where a particular program in your path is located Name: which Version: 2.21 -Release: 10%{?dist} +Release: 12%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -39,6 +39,12 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{_mandir}/man1/which.1* %changelog +* Tue Nov 19 2019 Than Ngo - 2.21-12 +- Fixed coverity issue + +* Tue Nov 19 2019 Than Ngo - 2.21-11 +- Resolves: #1768506, fix wrong alias + * Mon Jul 23 2018 Than Ngo - 2.21-10 - Fix coverity issues