Make gpgkey2ssh use absolute path to gpg2, fixes #11912

This commit is contained in:
Arda Xi
2015-12-27 20:57:55 +01:00
parent ee0fae473c
commit 7c17302848
4 changed files with 36 additions and 1 deletions
@@ -0,0 +1,14 @@
diff --git a/tools/gpgkey2ssh.c b/tools/gpgkey2ssh.c
index 903fb5b..d5611dc 100644
--- a/tools/gpgkey2ssh.c
+++ b/tools/gpgkey2ssh.c
@@ -266,7 +266,7 @@ main (int argc, char **argv)
keyid = argv[1];
ret = asprintf (&command,
- "gpg --list-keys --with-colons --with-key-data '%s'",
+ "@out@/bin/gpg2 --list-keys --with-colons --with-key-data '%s'",
keyid);
assert (ret > 0);