From: Dave West Date: Wed, 10 Oct 2007 19:19:14 +0000 (+0000) Subject: Fixed userlist command so it defaults to using unix domain socket X-Git-Tag: v7.86~2984 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=d4f0d20b9af05e622d894351e97c64dec3567653;p=citadel.git Fixed userlist command so it defaults to using unix domain socket instead of SEGFLTing. --- diff --git a/citadel/userlist.c b/citadel/userlist.c index f63f9a6c0..b55c1752b 100644 --- a/citadel/userlist.c +++ b/citadel/userlist.c @@ -25,6 +25,7 @@ #include #include "citadel_ipc.h" #include "tools.h" +#include "citadel_dirs.h" void logoff(int code) { @@ -71,8 +72,14 @@ int main(int argc, char **argv) char buf[SIZ]; char hostbuf[SIZ], portbuf[SIZ]; CtdlIPC *ipc = NULL; + int relh=0; + int home=0; + char relhome[PATH_MAX]=""; + char ctdldir[PATH_MAX]=CTDLDIR; CtdlInitBase64Table(); + calc_dirs_n_files(relh, home, relhome, ctdldir); + ipc = CtdlIPC_new(argc, argv, hostbuf, portbuf); CtdlIPC_chat_recv(ipc, buf); if ((buf[0]!='2')&&(strncmp(buf,"551",3))) {