Commit 4d72bda4 authored by Max Kellermann's avatar Max Kellermann

listen: set file mode 666 on the unix socket

Depending on MPD's umask, the file permissions of the unix socket were too restrictive, and many clients were not able to connect. Do a chmod(0666) on the socket, to allow everybody to connect.
parent 9ec69555
......@@ -176,6 +176,10 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param)
if (establishListen(PF_UNIX, addrp, addrlen) < 0)
FATAL("unable to bind to %s: %s\n",
param->value, strerror(errno));
/* allow everybody to connect */
chmod(param->value, 0666);
#endif /* HAVE_UN */
} else {
#ifdef HAVE_TCP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment