import UBI which-2.21-44.el10_0

This commit is contained in:
eabdullin 2025-08-05 06:44:28 +00:00
parent 1cd07ab32d
commit df63b41eb6
2 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,7 @@
Summary: Displays where a particular program in your path is located
Name: which
Version: 2.21
Release: 43%{?dist}
Release: 44%{?dist}
License: GPL-3.0-only
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
Source1: which2.sh
@ -47,6 +47,10 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%{_mandir}/man1/which.1*
%changelog
* Tue Jul 01 2025 Than Ngo <than@redhat.com> - 2.21-44
- Add a check to ensure that /proc/$$/exe can be read
Resolves: RHEL-97535
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.21-43
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018

View File

@ -1,7 +1,12 @@
# shellcheck shell=sh
# Initialization script for bash, sh, mksh and ksh
case "$(basename $(readlink /proc/$$/exe))" in
if [ -r /proc/$$/exe ]; then
SHELLNAME=$(basename $(readlink /proc/$$/exe))
else
SHELLNAME="unknown"
fi
case "$SHELLNAME" in
*ksh*|zsh)
alias which='alias | /usr/bin/which --tty-only --read-alias --show-tilde --show-dot'
;;