hydra-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] netstat


From: Ludovic Courtès
Subject: Re: [bug-inetutils] netstat
Date: Fri, 02 Dec 2011 18:08:42 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi,

Simon Josefsson <address@hidden> skribis:

> Eelco Dolstra <address@hidden> writes:
>
>> Hi,
>>
>> On 11/30/2011 05:17 PM, Simon Josefsson wrote:
>>
>>> What is the content of /etc/nsswitch.conf on the Hydra build servers?
>>> 
>>> I wonder what glibc does if there is no /etc/nsswitch.conf at all, which
>>> may be the situation on the build servers.
>>
>> Yes, that's the case for the Linux builds.  They're in a chroot that
>> has a extremely miminal /etc (currently, just /etc/passwd and
>> /etc/group with entries for the build uid/gid, and /etc/hosts with an
>> entry for localhost).
>
> What does getservbyname ("ftp", "tcp") return?  If it returns NULL, we
> need to deal with it, but if it hangs or takes a lot of time to timeout
> you may want to have a small /etc/nsswitch.conf or similar.

There’s no /etc/{services,protocols,resolv.conf} in the chroot.  Thus
tests cannot rely on name resolution, getservbyname, etc.  Instead, they
should use numeric values, like 127.0.0.1:21.  (I’ve found it to be an
acceptable workaround in practice.)

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]