Browse Source

use the correct socket file to pass to the XfroutClient in b10-auth when run from source (ticket #283)

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2705 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 14 years ago
parent
commit
066cb05d33
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/bin/auth/main.cc

+ 7 - 1
src/bin/auth/main.cc

@@ -156,7 +156,13 @@ main(int argc, char* argv[]) {
     Session* xfrin_session = NULL;
     bool xfrin_session_established = false; // XXX (see Trac #287)
     ModuleCCSession* config_session = NULL;
-    XfroutClient xfrout_client(UNIX_SOCKET_FILE);
+    string xfrout_socket_path;
+    if (getenv("B10_FROM_BUILD") != NULL) {
+        xfrout_socket_path = string(getenv("B10_FROM_BUILD")) + "/auth_xfrout_conn";
+    } else {
+        xfrout_socket_path = UNIX_SOCKET_FILE;
+    }
+    XfroutClient xfrout_client(xfrout_socket_path);
     try {
         string specfile;
         if (getenv("B10_FROM_BUILD")) {