]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make the UNIX socket listener path relative to the runtime path.
authorSadie Powell <sadie@witchery.services>
Wed, 20 Jan 2021 11:50:41 +0000 (11:50 +0000)
committerSadie Powell <sadie@witchery.services>
Wed, 20 Jan 2021 11:54:13 +0000 (11:54 +0000)
This is not a breaking change because unless the runtime path is
explicitly set it defaults to the same as the data path.

src/socket.cpp

index 78b7f2de92214b85731ac6664081f589f26cbad2..37d0fb73bef71eb9c7ab9a521dc6e44528d4df08 100644 (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;