8257973: UTIL_LOOKUP_PROGS should only find executable files

Reviewed-by: erikj
This commit is contained in:
Magnus Ihse Bursie 2020-12-09 15:41:08 +00:00
parent 6eff9315e1
commit 6c69eca380

View File

@ -391,7 +391,7 @@ AC_DEFUN([UTIL_LOOKUP_PROGS],
# Try again with .exe
full_path="$elem/$name.exe"
fi
if test -e "$full_path"; then
if test -x "$full_path" && test ! -d "$full_path" ; then
$1="$full_path"
UTIL_FIXUP_EXECUTABLE($1, $3, $4)
result="[$]$1"