Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!ames!ucbcad!ucbvax!bostic From: bostic@ucbvax.BERKELEY.EDU (Keith Bostic) Newsgroups: comp.bugs.4bsd Subject: Re: Error in getservent Message-ID: <20283@ucbvax.BERKELEY.EDU> Date: Tue, 25-Aug-87 12:13:41 EDT Article-I.D.: ucbvax.20283 Posted: Tue Aug 25 12:13:41 1987 Date-Received: Wed, 26-Aug-87 06:48:31 EDT References: <2861@psuvax1.psu.edu> Organization: University of California at Berkeley Lines: 9 Keywords: BSD 4.3 getservent.c Summary: This fix is wrong, don't apply it. In article <2861@psuvax1.psu.edu>, ehrlich@psuvax1.psu.edu (Dan Ehrlich) writes: > ... although /usr/include/netdb.h indicates that the s_port field of a > servent is an int, not even an u_long, the routine getservent was still > assuming this field to be a u_short. Below is the patch to correct > this oversight. The problem with this fix is that it gets placed into the port field of a sockaddr_in, which is a u_short. With the posted fix, all port numbers will be set to zero. Do not apply the fix.