Christoph Krempe wrote:
>
> Hi,
>
> are there any solutions for the imap-problem announced by Ken Murchison
> <[EMAIL PROTECTED]> ?? I got the same problem on a Linux maschine (Suse
> 7.0)
>
> "imapd: could not getenv(CYRUS_SERVICE)" ??
I did not announce the problem, I was simply trying to diagnose it. I
have no idea how this could be happening (char *environ too large?).
CYRUS_SERVICE isn't necessary, but if you're trying to use TCP Wrappers,
you won't be able to differentiate between services like imap and
imaps. If you simply want to hide the problem, then apply this patch:
Index: service.c
===================================================================
RCS file: /afs/andrew/system/cvs/src/cyrus/master/service.c,v
retrieving revision 1.23
diff -c -c -r1.23 service.c
*** service.c 2001/05/21 20:10:17 1.23
--- service.c 2001/06/29 12:09:13
***************
*** 166,173 ****
p = getenv("CYRUS_SERVICE");
if (p == NULL) {
! syslog(LOG_ERR, "could not getenv(CYRUS_SERVICE); exiting");
! exit(EX_SOFTWARE);
}
snprintf(name, sizeof(name) - 1, "service-%s", p);
--- 166,173 ----
p = getenv("CYRUS_SERVICE");
if (p == NULL) {
! syslog(LOG_WARNING, "could not getenv(CYRUS_SERVICE)");
! p = argv[0];
}
snprintf(name, sizeof(name) - 1, "service-%s", p);
***************
*** 248,255 ****
p = getenv("CYRUS_SERVICE");
if (p == NULL) {
! syslog(LOG_ERR, "could not getenv(CYRUS_SERVICE) (2);
exiting");
! exit(EX_SOFTWARE);
}
libwrap_init(&request, p);
--- 248,255 ----
p = getenv("CYRUS_SERVICE");
if (p == NULL) {
! syslog(LOG_WARNING, "could not getenv(CYRUS_SERVICE) (2)");
! p = argv[0];
}
libwrap_init(&request, p);
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp