Sorry, I accidentally hit send… Here's the rest:
In the following call can be found in bot Svar_DB.cc and the APserver, you can find the following:
strcpy(remote.sun_path + ABSTRACT_OFFSET, server_sockname);
ABSTRACT_OFFSET is #defined to 1. This means that the first character of the path will be 0 (there is a memset() before), and of course the call to bind() will fail.
Removing the addition of ABSTRACT_OFFSET will fix the problem.
I've been looking at the code and I have been trying to figure out why the code was written in this way to begin with. Any ideas?
Regards,
Elias