Skip to content

Commit 8a70349

Browse files
committed
getaddrinfo has no business doing unlink().
1 parent 7fc3009 commit 8a70349

File tree

1 file changed

+1
-4
lines changed
  • src/backend/libpq

1 file changed

+1
-4
lines changed

src/backend/libpq/ip.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.6 2003/04/03 21:50:23 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.7 2003/04/22 03:52:56 tgl Exp $
1212
*
1313
* This file and the IPV6 implementation were initially provided by
1414
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -159,9 +159,6 @@ getaddrinfo_unix(const char *path, const struct addrinfo *hintsp,
159159
unp->sun_len = sizeof(struct sockaddr_un);
160160
#endif /* SALEN */
161161

162-
if (hints.ai_flags & AI_PASSIVE)
163-
unlink(unp->sun_path);
164-
165162
return 0;
166163
}
167164
#endif /* HAVE_UNIX_SOCKETS */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy