Somethings still up with new NSS?

Jacques A. Vidrine nectar at FreeBSD.org
Mon Apr 28 19:57:51 PDT 2003


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 at celabo.org . jvidrine at verio.net . nectar at freebsd.org . nectar at kth.se
-------------- next part --------------
*** 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
  
  
  /*


More information about the freebsd-current mailing list