[git] GnuPG - branch, master, updated. gnupg-2.1.22-12-g6cba56d
by Werner Koch
cvs at cvs.gnupg.org
Thu Aug 3 21:21:50 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 6cba56d436b56ea5e60042144a8a75a2e80007c8 (commit)
from dcfb01959802b27869528dda1d9a4f5e79574bb5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
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>
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);
-----------------------------------------------------------------------
Summary of changes:
tools/gpg-wks-client.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list