summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 973b0cc)
raw | patch | inline | side by side (parent: 973b0cc)
author | Evgeny Chukreev <akshaal@toril.ru> | |
Sun, 6 Jan 2008 09:00:06 +0000 (10:00 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 6 Jan 2008 09:00:06 +0000 (10:00 +0100) |
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/unixsock.c | patch | blob | history |
diff --git a/src/unixsock.c b/src/unixsock.c
index 43e29c2e1bee700ac506c29399e89dd9fa26ff06..c7e0c4472f40e3ff7166ce8f802b77962eccd21b 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
#include <pthread.h>
#include <sys/socket.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include <grp.h>
return (-1);
}
+ chmod (sa.sun_path, sock_perms);
+
status = listen (sock_fd, 8);
if (status != 0)
{