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.
This commit is contained in:
Sadie Powell 2021-01-20 11:50:41 +00:00
parent a601cf2f0d
commit cc28ba0f21

View File

@ -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;