From: Patrick Monnerat Date: Wed, 18 Jun 2014 13:41:06 +0000 (+0200) Subject: buildconf: do not search tools in current directory. X-Git-Tag: curl-7_37_1~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdee523452955d5423dbe22a10ccfc60221dd99a;p=thirdparty%2Fcurl.git buildconf: do not search tools in current directory. --- diff --git a/buildconf b/buildconf index a7eb51a121..25205657d0 100755 --- a/buildconf +++ b/buildconf @@ -32,6 +32,7 @@ die(){ #-------------------------------------------------------------------------- # findtool works as 'which' but we use a different name to make it more # obvious we aren't using 'which'! ;-) +# Unlike 'which' does, the current directory is ignored. # findtool(){ file="$1" @@ -49,7 +50,7 @@ findtool(){ do IFS=$old_IFS # echo "checks for $file in $path" >&2 - if test -f "$path/$file"; then + if test "$path" -a "$path" != '.' -a -f "$path/$file"; then echo "$path/$file" return fi