Re: getaddrinfo(3) in CGI program

2020-10-22 Thread ben
>My guess would be your chroot does not contain a etc/resolv.conf >and/ro etc/hosts file and you do not have a resolver running on >127.0.0.1 Thank you, Otto! Upon moving /etc/resolv.conf file to the chrooted directory I was able to call getaddrinfo and receive the associated IP from the

Re: getaddrinfo(3) in CGI program

2020-10-22 Thread Otto Moerbeek
On Thu, Oct 22, 2020 at 10:16:28AM -0400, ben wrote: > Hello, Misc; > > I'm attempting to write a CGI progam in C which uses getaddrinfo(3), however > upon running the script getaddrinfo doesn't seem to run. I have a feeling this > is due to linking issues as other have experienced a similar

getaddrinfo(3) in CGI program

2020-10-22 Thread ben
Hello, Misc; I'm attempting to write a CGI progam in C which uses getaddrinfo(3), however upon running the script getaddrinfo doesn't seem to run. I have a feeling this is due to linking issues as other have experienced a similar issue with glibc. Here is the ldd output of the binary: Start