Make gpgkey2ssh use absolute path to gpg2, fixes #11912
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user