commit 26775faa67ed1de5fe9e5cfa9070280d27fc9c6d
parent 2deb6d14d8d3ae89e0c8acb4f51009b9cd99fe7c
Author: sin <sin@2f30.org>
Date: Thu, 2 Jun 2016 14:04:28 +0100
Use umask(0) to make sockets writable by everyone
We can revisit this in the future but for now it is handy.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ncmixer.c b/ncmixer.c
@@ -189,6 +189,7 @@ server_listen(char *name)
sun.sun_family = AF_UNIX;
strlcpy(sun.sun_path, name, sizeof(sun.sun_path));
len = sizeof(sun);
+ umask(0);
if (bind(fd, (SA *)&sun, len) == -1)
err(1, "bind");
if (listen(fd, 5) == -1)