[Pkg-gnupg-commit] [gnupg2] 12/34: wks: Allow gpg-wks-client --supported with just the domain name

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Aug 11 16:51:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch upstream
in repository gnupg2.

commit 6cba56d436b56ea5e60042144a8a75a2e80007c8
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Aug 3 21:16:22 2017 +0200

    wks: Allow gpg-wks-client --supported with just the domain name
    
    * tools/gpg-wks-client.c (command_supported): Hack for missing local
    part.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 tools/gpg-wks-client.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c
index 746aa53..594f28a 100644
--- a/tools/gpg-wks-client.c
+++ b/tools/gpg-wks-client.c
@@ -551,7 +551,14 @@ command_supported (char *userid)
   char *addrspec = NULL;
   char *submission_to = NULL;
 
-  addrspec = mailbox_from_userid (userid);
+  if (!strchr (userid, '@'))
+    {
+      char *tmp = xstrconcat ("foo@", userid, NULL);
+      addrspec = mailbox_from_userid (tmp);
+      xfree (tmp);
+    }
+  else
+    addrspec = mailbox_from_userid (userid);
   if (!addrspec)
     {
       log_error (_("\"%s\" is not a proper mail address\n"), userid);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list