[LTP] [PATCH] network/lib6/getaddrinfo01: rewrite with the new API + use static hostnames

Alexey Kodanev aleksei.kodanev@bell-sw.com
Wed May 19 09:32:10 CEST 2021


On 18.05.2021 22:15, Petr Vorel wrote:
> Hi Alexey,
> 
> ...
>> +static void setup(void)
>> +{
>> +	unsigned int i;
>> +	int fd;
> ...
>> +	SAFE_CP(host_file, "hosts");
> One more thing, could we check for /etc/hosts before?

Hi Petr,

Yes, why not. I assume it can be read-only, but I hope we won't hide a
configuration bug with this...

> Because we want to TCONF on systems without it not TBROK.
> And I guess there are embedded systems without it out there.
> 
> Kind regards,
> Petr
> 



More information about the ltp mailing list