[lsb-discuss] potential lsb-apache FVT problem and /etc/services

Thorsten Kukuk kukuk at suse.de
Tue Aug 22 14:28:33 PDT 2006


On Tue, Aug 22, Mark Brown wrote:

> > SuSv3 makes absolutely zero guarantees what getservbyport() will do if
> > there are multiple entries like this.  A valid implementation, given
> > the IANA list installed in /etc/services, could return the first, the
> > second, or none at all
> 
> Nope, it will *always* return the first entry that matches, as searched
> from the beginning. The "www" entries will never be reached by
> getservbyport(). They *will* be reached by getservbyname(www).

You make the assumption that getservbyport will parse /etc/services.
What happens if somebody use a real database as used as backend for
NIS?

  Thorsten

-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      kukuk at suse.de
SUSE LINUX Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = 8C6B FD92 EE0F 42ED F91A  6A73 6D1A 7F05 2E59 24BB




More information about the lsb-discuss mailing list