提交 1997f34d 编写于 作者: T Tom Lane

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

Per testing of previous patch.
上级 05346c13
......@@ -247,11 +247,6 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
(node == NULL && service == NULL))
return EAI_FAIL;
/* We don't support those. */
if ((node && !(flags & NI_NUMERICHOST))
|| (service && !(flags & NI_NUMERICSERV)))
return EAI_FAIL;
if (node)
{
ret = snprintf(node, nodelen, "%s", "[local]");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册