Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite075271

Browse files
committed
Fix socket file permissions, from Goran Thyni.
1 parent58527aa commite075271

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/1917:52:00 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.29 1997/11/1918: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)

[8]ページ先頭

©2009-2025 Movatter.jp