]> Savannah Git Hosting - gnulib.git/commit
findprog, relocatable-prog: Ignore directories during PATH search.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Mar 2020 18:56:33 +0000 (19:56 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Mar 2020 18:56:33 +0000 (19:56 +0100)
commit4c1009ec93e12ee34acd27f6d7e25442bedc16f2
tree5d0a81a0651886ef97e7535dbb6ec2bda7ed2940
parenta99ca2e041127e0c0d6c14273097c86879a6ebe3
findprog, relocatable-prog: Ignore directories during PATH search.

Reported by Frederick Eaton via Dmitry Goncharov in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.

* lib/findprog.c (find_in_path): When the file found in a PATH element
is a directory, continue searching.
* lib/progreloc.c (maybe_executable): Likewise.
ChangeLog
lib/findprog.c
lib/progreloc.c