From: Evgeny Chukreev Date: Sun, 6 Jan 2008 09:00:06 +0000 (+0100) Subject: unixsock plugin: Actually set the permissions for the socket. X-Git-Tag: collectd-4.1.6~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1d06974730499ad4abf876eb13bf5df7d012cdf;p=collectd.git unixsock plugin: Actually set the permissions for the socket. Signed-off-by: Florian Forster --- 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) {