From 2e19a342290b79ed398b47b7c4d16c6e0fb705a3 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 20 May 2008 21:25:18 -0400 Subject: [PATCH] exact match gpg fix --- lib/sup/crypto.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb index f596c89..0003fec 100644 --- a/lib/sup/crypto.rb +++ b/lib/sup/crypto.rb @@ -53,7 +53,7 @@ class CryptoManager payload_fn.write format_payload(payload) payload_fn.close - recipient_opts = to.map { |r| "--recipient '#{r}'" }.join(" ") + recipient_opts = to.map { |r| "--recipient '<#{r}>'" }.join(" ") sign_opts = sign ? "--sign --local-user '#{from}'" : "" gpg_output = run_gpg "--output - --armor --encrypt --textmode #{sign_opts} #{recipient_opts} #{payload_fn.path}" raise Error, (gpg_output || "gpg command failed: #{cmd}") unless $?.success? -- 1.5.4.3