X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsendcommand.c;h=e5cab9aa8d54b02ebcead9c4768c3a6d57ea58a5;hb=0b21b934f336f6bebb9251c7a1456892d5833841;hp=da37dd71c3ddd33fc443adc01bb60ed0cf136ffb;hpb=4146ecdb2118258ea226e8537b146ddb0b5bd7a6;p=citadel.git diff --git a/citadel/sendcommand.c b/citadel/sendcommand.c index da37dd71c..e5cab9aa8 100644 --- a/citadel/sendcommand.c +++ b/citadel/sendcommand.c @@ -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) {