Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 1996 17:13:52 +0000
From:      Aled Morris <aledm@pavilion.co.uk>
To:        Terry Lambert <terry@lambert.org>
Cc:        hackers@FreeBSD.org
Subject:   Re: More 2.1 Fixit disk PROBLEM (fwd)
Message-ID:  <199602151710.RAA27119@deputy.pavilion.co.uk>

next in thread | raw e-mail | index | archive | help
At 10:52 14/02/96 -0700, Terry Lambert wrote:
>> i.e. if the getservbyname fails, use a hardwired service port.
>
>Shouldn't these "hacks" go into "getservbyname" instead of each and
>every program seperately?

I don't think so - there should be a conscious programmer decision to
code defensively in the event of a service failure, and the return from
getservbyname should be authoratative (not an educated guess :-)

In this way the "hack" would also be more visible to anyone debugging
their application.

Aled
--
telephone +44 973 207987




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602151710.RAA27119>