findprog-in: Allow overriding the current directory.
commit0299e540e47d71207081f87de6ec7aa2ceed5d25
authorBruno Haible <bruno@clisp.org>
Mon, 14 Dec 2020 19:56:04 +0000 (14 20:56 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Dec 2020 22:48:26 +0000 (14 23:48 +0100)
treed41ef944841b2a29e42f788c936b163ea08bb103
parent29d55bf8c7d0c5a4a3b4aa2d93d897ff8463eb4c
findprog-in: Allow overriding the current directory.

* lib/findprog.h (find_in_given_path): Add directory argument.
* lib/findprog-in.c (find_in_given_path): Likewise.
* lib/execute.c (execute): Update caller.
* lib/spawn-pipe.c (create_pipe): Likewise.
* lib/windows-spawn.c (spawnpvech): Likewise.
* NEWS: Mention the change.
ChangeLog
NEWS
lib/execute.c
lib/findprog-in.c
lib/findprog.h
lib/spawn-pipe.c
lib/windows-spawn.c