--- cyphesis-0.5.15/server/CommUnixListener.cpp.orig 2008-04-09 09:42:04.000000000 -0700
+++ cyphesis-0.5.15/server/CommUnixListener.cpp 2008-04-09 09:43:16.000000000 -0700
@@ -91,7 +91,11 @@
/// will never be called in an instance of cyphesis already exists.
int CommUnixListener::setup(const std::string & name)
{
- m_path = var_directory + "/tmp/" + name;
+ if (name[0] != '/') {
+ m_path = var_directory + "/tmp/" + name;
+ } else {
+ m_path = name;
+ }
m_unixListener.open(m_path);
m_bound = m_unixListener.is_open();
--- cyphesis-0.5.15/client/ClientConnection.cpp.orig 2008-04-09 09:41:19.000000000 -0700
+++ cyphesis-0.5.15/client/ClientConnection.cpp 2008-04-09 12:57:43.000000000 -0700
@@ -142,7 +142,11 @@
debug(std::cout << "Attempting local connect." << std::endl << std::flush;);
std::string socket;
if (sockname == "") {
- socket = var_directory + "/tmp/" + client_socket_name;
+ if (client_socket_name[0] != '/') {
+ socket = var_directory + "/tmp/" + client_socket_name;
+ } else {
+ socket = client_socket_name;
+ }
} else if (sockname[0] != '/') {
socket = var_directory + "/tmp/" + sockname;
} else {