Files
gnulib/modules/findprog
T
Bruno Haible 7b1de4a62f 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.
* modules/findprog (Depends-on): Add sys_stat, stat.
* modules/findprog-lgpl (Depends-on): Likewise.

* lib/progreloc.c (maybe_executable): When the file found in a PATH
element is a directory, continue searching.
* lib/relocwrapper.c: Update comments.
* modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
(configure.ac-early): New section.
2020-04-10 15:57:10 +02:00

33 lines
313 B
Plaintext

Description:
Locating a program in PATH.
Files:
lib/findprog.h
lib/findprog.c
m4/findprog.m4
m4/eaccess.m4
Depends-on:
stdbool
sys_stat
xalloc
xconcat-filename
access
stat
unistd
configure.ac:
gl_FINDPROG
Makefile.am:
lib_SOURCES += findprog.h findprog.c
Include:
"findprog.h"
License:
GPL
Maintainer:
all