Mats Erik Andersson <[email protected]> writes:

> onsdag den 30 november 2011 klockan 10:44 skrev Simon Josefsson detta:
>> [email protected] (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