bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] netstat


From: Simon Josefsson
Subject: Re: [bug-inetutils] netstat
Date: Wed, 30 Nov 2011 11:28:59 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux)

Mats Erik Andersson <address@hidden> writes:

> onsdag den 30 november 2011 klockan 10:44 skrev Simon Josefsson detta:
>> address@hidden (Alfred M. Szmidt) writes:
>> 
>> >    NixOS has complained with us for demanding use of netstat, which
>> >    their build daemon does not provide.  On the other hand, NixOS does
>> >    not even provide "/etc/services", which makes any testing of
>> >    network code utterly pointless, breaking the needed library calls.
>> >
>> > True that, that is a serious bug in NisOS which makes it totally
>> > unusable for our purposes.
>> 
>> Where does InetUtils require a /etc/services?
>
> The library call getservbyname(3) does so, and we are using it!

POSIX allows that the function to be implemented without /etc/services.

Is there anywhere in InetUtils we use getservbyname without checking
that it returns NULL?  That would be a bug worth fixing.

Is there any other reason we require a /etc/services file?

/Simon



reply via email to

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