int r; /* IPC response code */
char *listing = NULL;
- r = CtdlIPCUserListing(ipc, &listing, buf);
+ r = CtdlIPCUserListing(ipc, patn, &listing, buf);
if (r / 100 != 1) {
pprintf("%s\n", buf);
return;
* guaranteed to have the uid/gid we want.
*/
if (!getuid() || !getgid()) {
- if (stat(CTDLDIR "/citadel.config", &st) < 0) {
+ if (stat(
+#ifndef HAVE_ETC_DIR
+ CTDLDIR
+#else
+ ETC_DIR
+#endif
+ "/citadel.config", &st) < 0) {
perror("couldn't stat citadel.config");
logoff(NULL, 3);
}