getnameinfo_unix has to be taught not to insist on NI_NUMERIC flags, too.

Per testing of previous patch.
pull/3/head
Tom Lane 13 years ago
parent 05346c131a
commit 1997f34db4
  1. 5
      src/backend/libpq/ip.c

@ -247,11 +247,6 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
(node == NULL && service == NULL)) (node == NULL && service == NULL))
return EAI_FAIL; return EAI_FAIL;
/* We don't support those. */
if ((node && !(flags & NI_NUMERICHOST))
|| (service && !(flags & NI_NUMERICSERV)))
return EAI_FAIL;
if (node) if (node)
{ {
ret = snprintf(node, nodelen, "%s", "[local]"); ret = snprintf(node, nodelen, "%s", "[local]");

Loading…
Cancel
Save