summaryrefslogtreecommitdiff
path: root/src/net/SocketUtil.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-03-21 11:49:41 +0100
committerMax Kellermann <max@musicpd.org>2019-03-21 11:49:41 +0100
commit977a4570d9294238db322c49acedde4457b621d8 (patch)
treed4265c43c0d7a20a078f6f2807b20784e866c4a8 /src/net/SocketUtil.cxx
parent6c2077eb7c0f054895e268e874515f35d1fed2fe (diff)
parent6bab3bcfea1c91cfb727ffc354e00f8893ad6d3e (diff)
Merge branch 'v0.21.x'
Diffstat (limited to 'src/net/SocketUtil.cxx')
-rw-r--r--src/net/SocketUtil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/SocketUtil.cxx b/src/net/SocketUtil.cxx
index f2910e7a0..94ce47d0d 100644
--- a/src/net/SocketUtil.cxx
+++ b/src/net/SocketUtil.cxx
@@ -35,7 +35,7 @@ socket_bind_listen(int domain, int type, int protocol,
throw MakeSocketError("Failed to create socket");
#ifdef HAVE_UN
- if (domain == AF_UNIX) {
+ if (domain == AF_LOCAL) {
/* Prevent access until right permissions are set */
fchmod(fd.Get(), 0);
}