mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c (main),
keyserver.c (keyserver_spawn): If the user does not use "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before calling the keyserver helper. If the user does use "exec-path", append GNUPG_LIBEXECDIR after the specified path.
This commit is contained in:
parent
0ecc2099ac
commit
d0c643a6c5
6 changed files with 42 additions and 8 deletions
|
@ -339,6 +339,11 @@ keyserver_spawn(int action,STRLIST list,
|
|||
opt.keyserver_options.use_temp_files=1;
|
||||
#endif
|
||||
|
||||
#ifndef FIXED_EXEC_PATH
|
||||
/* Push the libdir into path */
|
||||
set_exec_path(GNUPG_LIBEXECDIR,opt.exec_path_set);
|
||||
#endif
|
||||
|
||||
/* Build the filename for the helper to execute */
|
||||
|
||||
command=m_alloc(strlen("gpgkeys_")+strlen(opt.keyserver_scheme)+1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue