Allow relative paths for the UNIX socket

refs #7805
This commit is contained in:
Gunnar Beutner 2014-12-19 12:33:51 +01:00
parent 97168378e8
commit b78a8b6c77
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ int ReplCommand::Run(const po::variables_map& vm, const std::vector<std::string>
Socket::Ptr socket;
#ifndef _WIN32
if (addr[0] == '/') {
if (addr.FindFirstOf("/") != String::NPos) {
UnixSocket::Ptr usocket = new UnixSocket();
usocket->Connect(addr);
socket = usocket;