summaryrefslogtreecommitdiff
path: root/modules/findprog-in
Commit message (Collapse)AuthorAgeFilesLines
* findprog-in: Relicense under LGPLv2+.Bruno Haible2020-12-101-1/+1
| | | | | | | Paul Smith's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>. * modules/findprog-in (License): Change to LGPLv2+.
* findprog-in: Don't exit upon out-of-memory.Bruno Haible2020-12-101-2/+3
| | | | | | | | | | | * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error code. * lib/findprog-in.c: Don't include xalloc.h. (find_in_given_path): Call concatenated_filename, not xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory, return NULL with errno set. * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add concat-filename, strdup-posix, malloc-posix.
* findprog-in: Ignore directories.Bruno Haible2020-05-231-0/+2
| | | | | | | | | | Reported by Frederick Eaton via Dmitry Goncharov in <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>. * lib/findprog-in.c (find_in_given_path): When the file found is a directory, set errno to EACCES and, during a PATH search, continue searching. * modules/findprog-in (Depends-on): Add sys_stat, stat.
* findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.Bruno Haible2019-09-151-0/+1
| | | | | | * modules/findprog (Depends-on): Add access. * modules/findprog-lgpl (Depends-on): Likewise. * modules/findprog-in (Depends-on): Likewise.
* findprog-in: New module.Bruno Haible2019-09-081-0/+30
Suggested by Paul Smith <psmith@gnu.org>. * lib/findprog.h (find_in_given_path): New declaration. * lib/findprog-in.c: New file, based on lib/findprog.c. * m4/findprog-in.m4: New file, based on m4/findprog.m4. * modules/findprog-in: New file.