From owner-freebsd-hackers Thu Feb 15 09:12:51 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA09599 for hackers-outgoing; Thu, 15 Feb 1996 09:12:51 -0800 (PST) Received: from deputy.pavilion.co.uk (deputy.pavilion.co.uk [194.193.24.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA09591 for ; Thu, 15 Feb 1996 09:12:45 -0800 (PST) Received: from poolc40.pavilion.co.uk (poolc40.pavilion.co.uk [194.193.28.168]) by deputy.pavilion.co.uk (8.7/8.7) with SMTP id RAA27119; Thu, 15 Feb 1996 17:10:59 GMT Message-Id: <199602151710.RAA27119@deputy.pavilion.co.uk> X-Sender: aledm@mailhost.pavilion.co.uk X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 15 Feb 1996 17:13:52 +0000 To: Terry Lambert From: Aled Morris Subject: Re: More 2.1 Fixit disk PROBLEM (fwd) Cc: hackers@FreeBSD.org Sender: owner-hackers@FreeBSD.org Precedence: bulk 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