Skip to content
Snippets Groups Projects
Commit 8b43e325 authored by Tom Lane's avatar Tom Lane
Browse files

Revert to our pre-7.4 behavior of identifying Unix-socket connections in

ps status as '[local]', not as 'localhost' as the code has been doing
recently.  That's too easily confused with TCP loopback connections,
and there is no good reason to change the behavior anyway.
parent b1d3de6b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.22 2003/09/08 00:56:13 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.23 2003/09/12 20:18:51 tgl Exp $
* *
* This file and the IPV6 implementation were initially provided by * This file and the IPV6 implementation were initially provided by
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design * Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
...@@ -252,7 +252,7 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen, ...@@ -252,7 +252,7 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
if (node) if (node)
{ {
ret = snprintf(node, nodelen, "%s", "localhost"); ret = snprintf(node, nodelen, "%s", "[local]");
if (ret == -1 || ret > nodelen) if (ret == -1 || ret > nodelen)
return EAI_MEMORY; return EAI_MEMORY;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment