diff options
author | Bruno Haible <bruno@clisp.org> | 2020-04-10 15:57:10 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-04-10 15:57:10 +0200 |
commit | 7b1de4a62f8766787160f785217671b074e0f0f2 (patch) | |
tree | 59c80ebdaa034f40c9bbf8d8a3f71b3f1d054d34 /modules/findprog | |
parent | 242644e7d7ab831b2d0c138bcad21d6b2758fbcc (diff) | |
download | gnulib-7b1de4a62f8766787160f785217671b074e0f0f2.tar.gz |
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.
Diffstat (limited to 'modules/findprog')
-rw-r--r-- | modules/findprog | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/findprog b/modules/findprog index d48158b791..b5f3c20d51 100644 --- a/modules/findprog +++ b/modules/findprog @@ -9,9 +9,11 @@ m4/eaccess.m4 Depends-on: stdbool +sys_stat xalloc xconcat-filename access +stat unistd configure.ac: |