From 1fe2d8c9ba525d270229b43e795ae716217f9c93 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sat, 25 Aug 2018 21:20:31 +0200 Subject: [PATCH] unix: make sure unix sockets have ugo+rwx on freebsd --- src/unix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix.c b/src/unix.c index 256a3615..8df9a829 100644 --- a/src/unix.c +++ b/src/unix.c @@ -113,6 +113,9 @@ int unix_create_unix_socket(const char path[], int *sock_out) goto err; } + // Try to set ugo+rwx + chmod(path, 0777); + listen(sock, 5); *sock_out = sock;