RE: [Exim] exim -bd crashes (Version 4.20, with openldap2 an…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Schramm, Dominik
CC: exim-users
Sujet: RE: [Exim] exim -bd crashes (Version 4.20, with openldap2 and native bdb)
On Tue, 29 Jul 2003, Schramm, Dominik wrote:

> but root normally does not get disturbed by the fact that a directory
> is not writable for root. so i thougt, why bother?


That's true.

> So the problem must be caused by the system's lookup function
> getservbyname, right?


It certainly looks like it.

> However, the following code compiles and runs correctly:
>
> #include <netdb.h>
> #include <stdio.h>
> int main(void)
> {
> struct servent* srvent;
> srvent = getservbyname("smtp", "tcp");
> printf("official name: %s\nport number: %d\nprotocol: %s\n",
>            srvent->s_name, srvent->s_port, srvent->s_proto);
> return 0;
> }

>
> I'm clueless.


Me too! I suppose one more thing you could try would be to run the
program with a trace turned on (strace or whatever). Check that it is
actually getting to getservbyname() if you can.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book