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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user