summaryrefslogtreecommitdiff
path: root/src/net
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
parent6c2077eb7c0f054895e268e874515f35d1fed2fe (diff)
parent6bab3bcfea1c91cfb727ffc354e00f8893ad6d3e (diff)
Merge branch 'v0.21.x'
Diffstat (limited to 'src/net')
-rw-r--r--src/net/SocketUtil.cxx2
-rw-r--r--src/net/SocketUtil.hxx2
-rw-r--r--src/net/ToString.cxx2
3 files changed, 3 insertions, 3 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);
}
diff --git a/src/net/SocketUtil.hxx b/src/net/SocketUtil.hxx
index e27ae89b4..873ec4861 100644
--- a/src/net/SocketUtil.hxx
+++ b/src/net/SocketUtil.hxx
@@ -32,7 +32,7 @@ class SocketAddress;
/**
* Creates a socket listening on the specified address. This is a
* shortcut for socket(), bind() and listen().
- * When a unix socket is created (domain == AF_UNIX), its
+ * When a local socket is created (domain == AF_LOCAL), its
* permissions will be stripped down to prevent unauthorized
* access. The caller is responsible to apply proper permissions
* at a later point.
diff --git a/src/net/ToString.cxx b/src/net/ToString.cxx
index abfbd88d5..e9867d835 100644
--- a/src/net/ToString.cxx
+++ b/src/net/ToString.cxx
@@ -106,7 +106,7 @@ ToString(SocketAddress address) noexcept
{
#ifdef HAVE_UN
if (address.GetFamily() == AF_LOCAL)
- /* return path of UNIX domain sockets */
+ /* return path of local socket */
return LocalAddressToString(*(const sockaddr_un *)address.GetAddress(),
address.GetSize());
#endif