From: Sadie Powell Date: Wed, 20 Jan 2021 11:50:41 +0000 (+0000) Subject: Make the UNIX socket listener path relative to the runtime path. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cc28ba0f2164ea68db1bc373ee06fc58f82c3314;p=user%2Fhenk%2Fcode%2Finspircd.git Make the UNIX socket listener path relative to the runtime path. This is not a breaking change because unless the runtime path is explicitly set it defaults to the same as the data path. --- diff --git a/src/socket.cpp b/src/socket.cpp index 78b7f2de9..37d0fb73b 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -105,7 +105,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) if (!path.empty()) { // Expand the path relative to the config directory. - const std::string fullpath = ServerInstance->Config->Paths.PrependData(path); + const std::string fullpath = ServerInstance->Config->Paths.PrependRuntime(path); // UNIX socket paths are length limited to less than PATH_MAX. irc::sockets::sockaddrs bindspec;