Skip to content

Commit

Permalink
unix: make sure unix sockets have ugo+rwx on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Aug 25, 2018
1 parent 9622039 commit 1fe2d8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1fe2d8c

Please sign in to comment.