From: Petr Vorel Date: Wed, 19 May 2021 21:59:34 +0200 Subject: [LTP] [PATCH] network/lib6/getaddrinfo01: rewrite with the new API + use static hostnames In-Reply-To: References: <20210518091422.41857-1-aleksei.kodanev@bell-sw.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it > 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... Hi Alexey, hm, not sure if we can hide configuration bug. For a traditional distros probably yes, but not for embedded and other special distros. And good point, I'd TCONF also when file is read-only (which is more likely that file not presented). We can always think about different solution if anybody complains about this requirement. Kind regards, Petr > > 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