Skip to content

Commit

Permalink
8257973: UTIL_LOOKUP_PROGS should only find executable files
Browse files Browse the repository at this point in the history
Reviewed-by: erikj
  • Loading branch information
magicus committed Dec 9, 2020
1 parent 6eff931 commit 6c69eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/autoconf/util_paths.m4
Expand Up @@ -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"
Expand Down

1 comment on commit 6c69eca

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.