* Applied a patch sent in by Wilfried Goesgens which allows the various
[citadel.git] / citadel / sendcommand.c
index da37dd71c3ddd33fc443adc01bb60ed0cf136ffb..e5cab9aa8d54b02ebcead9c4768c3a6d57ea58a5 100644 (file)
@@ -111,7 +111,13 @@ void np_attach_to_server(void)
        int r;
 
        strcpy(hostbuf, UDS);   /* Only run on a unix domain socket */
-       strcpy(portbuf, ".");   /* IPGM will refuse to run on the network */
+       strcpy(portbuf, 
+#ifndef HAVE_RUN_DIR
+                  "."  /* IPGM will refuse to run on the network */
+#else
+                  ""
+#endif
+                  );
        fprintf(stderr, "Attaching to server...\n");
        ipc = CtdlIPC_new(1, args, hostbuf, portbuf);
        if (!ipc) {