From: Daniel Stenberg Date: Thu, 9 Jun 2005 22:43:13 +0000 (+0000) Subject: make sure the found tool is a regular file (and not a dir or something) X-Git-Tag: curl-7_14_1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a214af0830b0a618535a937573f1db3e7f85b009;p=thirdparty%2Fcurl.git make sure the found tool is a regular file (and not a dir or something) --- diff --git a/buildconf b/buildconf index 709434f497..d7efd575f2 100755 --- a/buildconf +++ b/buildconf @@ -13,7 +13,7 @@ findtool(){ IFS=":" for path in $PATH do - if test -r "$path/$file"; then + if test -f "$path/$file"; then echo "$path/$file" return fi