Skip to content

Commit e075271

Browse files
committed
Fix socket file permissions, from Goran Thyni.
1 parent 58527aa commit e075271

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.28 1997/11/19 17:52:00 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.29 1997/11/19 18:28:59 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -658,7 +658,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
658658
*/
659659

660660
*fdP = fd;
661-
if (family == AF_UNIX) atexit(do_unlink);
661+
if (family == AF_UNIX)
662+
{
663+
chmod(sock_path, 0777);
664+
atexit(do_unlink);
665+
}
662666
return (STATUS_OK);
663667
}
664668

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