diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2017-02-18 03:20:43 +0200 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2017-02-18 03:28:20 +0200 |
commit | 36e0d20f280dc9e4b31b96f2f361927297ca6210 (patch) | |
tree | 75f6a68430503c8d269e55917b16c686c8f4f1f6 /app-crypt/gnupg/files | |
parent | app-crypt/gnupg: remove gnupg-2.0 (diff) | |
download | gentoo-36e0d20f280dc9e4b31b96f2f361927297ca6210.tar.gz gentoo-36e0d20f280dc9e4b31b96f2f361927297ca6210.tar.bz2 gentoo-36e0d20f280dc9e4b31b96f2f361927297ca6210.zip |
app-crypt/gnupg: cleanup old
Package-Manager: portage-2.3.3
Diffstat (limited to 'app-crypt/gnupg/files')
-rw-r--r-- | app-crypt/gnupg/files/gnupg-2.1.17-dirmngr-Strip-root-zone-suffix-from-libdns-cname-res.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app-crypt/gnupg/files/gnupg-2.1.17-dirmngr-Strip-root-zone-suffix-from-libdns-cname-res.patch b/app-crypt/gnupg/files/gnupg-2.1.17-dirmngr-Strip-root-zone-suffix-from-libdns-cname-res.patch deleted file mode 100644 index 4b715028f678..000000000000 --- a/app-crypt/gnupg/files/gnupg-2.1.17-dirmngr-Strip-root-zone-suffix-from-libdns-cname-res.patch +++ /dev/null @@ -1,46 +0,0 @@ -From b200e636ab20d2aa93d9f71f3789db5a04af0a56 Mon Sep 17 00:00:00 2001 -From: Werner Koch <wk@gnupg.org> -Date: Mon, 2 Jan 2017 10:00:33 +0100 -Subject: [PATCH] dirmngr: Strip root zone suffix from libdns cname results. - -* dirmngr/dns-stuff.c (resolve_name_libdns): Strip trailing dot. -(get_dns_cname_libdns): Ditto. --- - -Signed-off-by: Werner Koch <wk@gnupg.org> ---- - dirmngr/dns-stuff.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c -index a31b073..f2e1df9 100644 ---- a/dirmngr/dns-stuff.c -+++ b/dirmngr/dns-stuff.c -@@ -732,6 +732,10 @@ resolve_name_libdns (const char *name, unsigned short port, - err = gpg_error_from_syserror (); - goto leave; - } -+ /* Libdns appends the root zone part which is problematic -+ * for most other functions - strip it. */ -+ if (**r_canonname && (*r_canonname)[strlen (*r_canonname)-1] == '.') -+ (*r_canonname)[strlen (*r_canonname)-1] = 0; - } - - dai = xtrymalloc (sizeof *dai + ent->ai_addrlen -1); -@@ -1899,6 +1903,13 @@ get_dns_cname_libdns (const char *name, char **r_cname) - *r_cname = xtrystrdup (cname.host); - if (!*r_cname) - err = gpg_error_from_syserror (); -+ else -+ { -+ /* Libdns appends the root zone part which is problematic -+ * for most other functions - strip it. */ -+ if (**r_cname && (*r_cname)[strlen (*r_cname)-1] == '.') -+ (*r_cname)[strlen (*r_cname)-1] = 0; -+ } - - leave: - dns_free (ans); --- -2.8.1 - |