aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@gnupg.org>2020-11-04 13:48:18 +0100
committerAndre Heinecke <aheinecke@gnupg.org>2020-11-04 13:50:13 +0100
commitc8f6f6bbc8b203e633d382aa84862807c1aeb3d1 (patch)
treee4327cf2648e12ffd0ad9b3dfe2925b5c0c855fe
parente2659f4bf603693c43af0444239bc52744291edc (diff)
downloadgnupg-c8f6f6bbc8b203e633d382aa84862807c1aeb3d1.tar.gz
w32: Add another pinentry search path
* common/homedir.c (get_default_pinentry_name): Try ../bin/pinentry.exe -- In an installation layout where GnuPG is installed as a component of another software it might be useful to have pinentry placed in a different bin directory without the forced folder name of Gpg4win. (cherry picked from commit b4cb91d5fbe2b8917d76d12eb72aaac0d97ed596)
-rw-r--r--common/homedir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c
index dd1575cd0..15475c256 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -994,6 +994,8 @@ get_default_pinentry_name (int reset)
/* Try Gpg4win directory (with bin and without.) */
{ w32_rootdir, "\\..\\Gpg4win\\bin\\pinentry.exe" },
{ w32_rootdir, "\\..\\Gpg4win\\pinentry.exe" },
+ /* Try a pinentry in a dir above us */
+ { w32_rootdir, "\\..\\bin\\pinentry.exe" },
/* Try old Gpgwin directory. */
{ w32_rootdir, "\\..\\GNU\\GnuPG\\pinentry.exe" },
/* Try a Pinentry from the common GNU dir. */