From a6fb2997f19dcf84250a41dc4bcfe7c08523e289 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Jan 2006 18:05:28 +0000 Subject: [PATCH] Use full paths in krb5.sh to avoid path lookups --- krb5.sh | 6 +++--- krb5.spec | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/krb5.sh b/krb5.sh index eb94fd9..b5c9e5c 100755 --- a/krb5.sh +++ b/krb5.sh @@ -1,8 +1,8 @@ -if ! echo ${PATH} | grep -q /usr/kerberos/bin ; then +if ! echo ${PATH} | /bin/grep -q /usr/kerberos/bin ; then PATH=/usr/kerberos/bin:${PATH} fi -if ! echo ${PATH} | grep -q /usr/kerberos/sbin ; then - if [ `id -u` = 0 ] ; then +if ! echo ${PATH} | /bin/grep -q /usr/kerberos/sbin ; then + if [ `/usr/bin/id -u` = 0 ] ; then PATH=/usr/kerberos/sbin:${PATH} fi fi diff --git a/krb5.spec b/krb5.spec index ba2b767..894d55e 100644 --- a/krb5.spec +++ b/krb5.spec @@ -10,7 +10,7 @@ Summary: The Kerberos network authentication system. Name: krb5 Version: 1.4.3 -Release: 1.1 +Release: 2 # Maybe we should explode from the now-available-to-everybody tarball instead? # http://web.mit.edu/kerberos/dist/krb5/1.4/krb5-1.4.2-signed.tar Source0: krb5-%{version}.tar.gz @@ -135,6 +135,9 @@ network uses Kerberos, this package should be installed on every workstation. %changelog +* Thu Jan 19 2006 Matthias Clasen 1.4.3-2 +- Use full paths in krb5.sh to avoid path lookups + * Fri Dec 09 2005 Jesse Keating - rebuilt