chiark / gitweb /
dirmngr: Do not assume that /etc/hosts exists.
authorWerner Koch <wk@gnupg.org>
Mon, 3 Apr 2017 17:10:50 +0000 (19:10 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commitcfb12f979aaad5925500cf3edc6b748ddcc0a9f8
treea615d93c48eb4de05486051eea1d4ceac30817e2
parente8e85025ba3319a7d4e4bc1c189e7346d12f85b7
dirmngr: Do not assume that /etc/hosts exists.

* dirmngr/dns-stuff.c (libdns_init): Do not bail out.
--

A standard Windows installation does not have a hosts file and thus we
can't bail out here.  We should also not bail out on a Unix system
because /etc/hosts is just one method in  nsswitch.conf.

Fixes-commit: 88f1505f0613894d5544290a170119eb538921e5
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 5d873f288e86edfb684f4dd57ac36466b06494a4)

Gbp-Pq: Name 0060-dirmngr-Do-not-assume-that-etc-hosts-exists.patch
dirmngr/dns-stuff.c