Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+6-2
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)