From 0b657f683f8498de59cf254dfb016bf313930b1d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Sep 2012 15:51:25 -0700 Subject: ebuild-helpers/sed: use -ef to check recursion --- bin/ebuild-helpers/sed | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ebuild-helpers/sed b/bin/ebuild-helpers/sed index b21e8569c..cc447696d 100755 --- a/bin/ebuild-helpers/sed +++ b/bin/ebuild-helpers/sed @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2007 Gentoo Foundation +# Copyright 2007-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 scriptpath=${BASH_SOURCE[0]} @@ -14,8 +14,8 @@ else IFS=":" for path in $PATH; do - [[ ${path}/${scriptname} == ${scriptpath} ]] && continue if [[ -x ${path}/${scriptname} ]]; then + [[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue exec ${path}/${scriptname} "$@" exit 0 fi -- cgit v1.2.3-1-g7c22