projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unixsock plugin: Actually set the permissions for the socket.
[collectd.git]
/
src
/
unixsock.c
diff --git
a/src/unixsock.c
b/src/unixsock.c
index
43e29c2
..
c7e0c44
100644
(file)
--- a/
src/unixsock.c
+++ b/
src/unixsock.c
@@
-29,6
+29,7
@@
#include <pthread.h>
#include <sys/socket.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include <grp.h>
@@
-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)
{