getaddrinfo has no business doing unlink().

This commit is contained in:
Tom Lane 2003-04-22 03:52:56 +00:00
parent 7fc30094c7
commit 8a703496a2
1 changed files with 1 additions and 4 deletions

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.6 2003/04/03 21:50:23 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.7 2003/04/22 03:52:56 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
@ -159,9 +159,6 @@ getaddrinfo_unix(const char *path, const struct addrinfo *hintsp,
unp->sun_len = sizeof(struct sockaddr_un); unp->sun_len = sizeof(struct sockaddr_un);
#endif /* SALEN */ #endif /* SALEN */
if (hints.ai_flags & AI_PASSIVE)
unlink(unp->sun_path);
return 0; return 0;
} }
#endif /* HAVE_UNIX_SOCKETS */ #endif /* HAVE_UNIX_SOCKETS */