From owner-freebsd-questions Thu Jul 29 12: 7: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from norton.miranda.com (mail.miranda.com [199.202.147.246]) by hub.freebsd.org (Postfix) with ESMTP id D58BC14E02 for ; Thu, 29 Jul 1999 12:06:50 -0700 (PDT) (envelope-from mjblais@miranda.com) Received: from sparta (sparta.miranda.com [192.168.100.1]) by norton.miranda.com (8.9.3/8.9.3) with SMTP id PAA24359; Thu, 29 Jul 1999 15:05:37 -0400 (EDT) Message-Id: <199907291905.PAA24359@norton.miranda.com> X-Sender: mjblais@mail.miranda.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Thu, 29 Jul 1999 15:06:27 -0400 To: Robert Beer , "questions@FreeBSD.ORG" From: Marie-Josee Blais Subject: Re: Sendmail 8.9.3 and FreeBSD 2.2.7 and 2.2.8 In-Reply-To: References: <199907291522.LAA19102@norton.miranda.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry for my ignorance. But what do I need to do to recompile libc. Do I have to recompile anything else or is this a dynamic library? At 13:15 1999-07-29 -0400, Robert Beer wrote: >At 11:23 AM -0400 7/29/1999, Marie-Josee Blais wrote: >>Hello I am currently running a FreeBSD 2.2.7 on one machine and 2.2.8 on >>the other. >>I installed Sendmail 8.9.3 on both. >> >>I noticed something peculiar on the one running 2.2.8. It seems to accept >>messages for unknown users. Actually, the first 8 characters correspond to >>a user but not the rest. The system running 2.2.7 works fine though. If I >>try sending a message with the same kind of invalid address it rejects it. >>Also, on 2.2.8, it actually creates a mailbox with the unknown user but >>with the user id that has the same first 8 characters. Is this a known >>issue. I've looked for messages but haven't found anything. Both system= use >>the same configuration for sendmail > >This is a problem. Here is my solution: > >*** /usr/src/lib/libc/gen/getpwent.c Fri Apr 30 16:18:02 1999 >--- /usr/src/lib/libc/gen/getpwent.c.orig Fri Apr 30 15:26:38 1999 >*************** >*** 137,145 **** > return((struct passwd *)NULL); > > bf[0] =3D _PW_KEYBYNAME; >! len =3D strlen(name); >! if (len > UT_NAMESIZE) >! return(NULL); > bcopy(name, bf + 1, len); > key.data =3D (u_char *)bf; > key.size =3D len + 1; >--- 137,143 ---- > return((struct passwd *)NULL); > > bf[0] =3D _PW_KEYBYNAME; >! len =3D MIN(strlen(name), MAXLOGNAME - 1); > bcopy(name, bf + 1, len); > key.data =3D (u_char *)bf; > key.size =3D len + 1; > >--- >Bob Beer >Ohio Northern University, Academic Computer Services, Ada, OH 45810 >=20 /-----------------------------\ | Marie-Josee Blais=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 | | Network Administrator=A0=A0=A0=A0=A0=A0 | |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 | | E-mail:mjblais@miranda.com=A0 | | --------------------------- | | Technologies Miranda Inc.=A0=A0 | | Tel:(514) 333-1772=A0=A0=A0=A0=A0=A0=A0=A0=A0 | | Fax:(514) 333-9828=A0=A0=A0=A0=A0=A0=A0=A0=A0 | | Web:=A0www.miranda.com | \-----------------------------/ =20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message