Commit e075271c authored by Bruce Momjian's avatar Bruce Momjian

Fix socket file permissions, from Goran Thyni.

parent 58527aa2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.28 1997/11/19 17:52:00 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.29 1997/11/19 18:28:59 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -658,7 +658,11 @@ StreamServerPort(char *hostName, short portName, int *fdP) ...@@ -658,7 +658,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
*/ */
*fdP = fd; *fdP = fd;
if (family == AF_UNIX) atexit(do_unlink); if (family == AF_UNIX)
{
chmod(sock_path, 0777);
atexit(do_unlink);
}
return (STATUS_OK); return (STATUS_OK);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment