Denis Fondras wrote:

> Hello all,
> 
> I am burning my last neurons with a behavior I can't explain. I wonder
> why getaddrinfo() fails when called after chroot() with root user.
> 
> 
> I have this piece of code :
> 
...
>         error = getaddrinfo("rpki.liopen.eu", NULL, NULL, &ai_out);
>         if (error)
>                 printf("getaddrinfo() failed\n");
>         else printf("getaddrinfo() succeed\n");
...

Apart from the other suggestions you got, I'm wandering why don't you try to 
get more information about the error using the gai_strerror(3) function ?
(like in the example of getaddrinfo(3))

Reply via email to