From e1d06974730499ad4abf876eb13bf5df7d012cdf Mon Sep 17 00:00:00 2001 From: Evgeny Chukreev Date: Sun, 6 Jan 2008 10:00:06 +0100 Subject: [PATCH] unixsock plugin: Actually set the permissions for the socket. Signed-off-by: Florian Forster --- src/unixsock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unixsock.c b/src/unixsock.c index 43e29c2e..c7e0c447 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -365,6 +366,8 @@ static int us_open_socket (void) return (-1); } + chmod (sa.sun_path, sock_perms); + status = listen (sock_fd, 8); if (status != 0) { -- 2.11.0