Date: Mon, 28 Apr 2003 21:57:49 -0500 From: "Jacques A. Vidrine" <nectar@FreeBSD.org> To: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> Cc: freebsd-current@freebsd.org Subject: Re: Somethings still up with new NSS? Message-ID: <20030429025749.GA49911@madman.celabo.org> In-Reply-To: <86adeajfpe.fsf@xa12.heimat.gr.jp> References: <20030428075916.GA53857@myhakas.internal> <20030428075916.GA53857@myhakas.internal> <20030428190209.A21656@dilbert.robbins.dropbear.id.au> <87of2rexxd.fsf@boggy.acest.tutrp.tut.ac.jp> <20030428174751.GA38323@madman.celabo.org> <86adeajfpe.fsf@xa12.heimat.gr.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The problem is this:
qpopper includes its own, buggy implementation of strlcpy. libc calls
strlcpy, and gets qpopper's version. The qpopper version's return
value is incorrect.
That is really scary.
Put the attached patch file in /usr/ports/mail/qpopper/files, and
rebuild qpopper. This will disable the built-in strlcpy and strlcat,
and it should then work.
Cheers,
--
Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal
nectar@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-common::string_util.c"
*** common/string_util.c.orig Mon Apr 28 21:53:36 2003
--- common/string_util.c Mon Apr 28 21:54:06 2003
***************
*** 37,42 ****
--- 37,43 ----
+ #if 0
/*
* Function: strlcpy
*
***************
*** 156,161 ****
--- 157,163 ----
*dst = '\0';
return dstlen + ( src - strsource ) + strlen ( src );
}
+ #endif
/*
--YZ5djTAD1cGYuMQK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030429025749.GA49911>
