strncpy (was Re: samba 3.0.22 / 3.0.23)

David Collier-Brown davec-b at
Thu Jul 27 17:04:08 GMT 2006

Is it ok if I say:
  * strlcpy -- An early strlcpy/strlcat implementation.
  *   Copyright (C) 2004  David Collier-Brown, davecb at
  *   This program is released under the BSD and LGPL licenses, so as
  *   to be usable in Samba's nsswitch/pam_winbind, etc.

simo wrote:
> On Thu, 2006-07-27 at 08:58 -0700, Jeremy Allison wrote:
>>strlcat in Samba is probably in a GPL licensed file. pam_winbind
>>and others must be BSD licensed for inclusing in proprietary
>>software. That's why strncat is being used here. To change it
>>you'll have to move a version of strlcat into the BSD licensed
> Except for pam_winbind most of our NSS files are GNU LGPL licensed, but
> this does not change the fact the you can't use samba's GNU GPLed code
> in these modules to keep the LGPL license.
> We must release these files as LGPL because these modules link at
> runtime with proprietary libc libraries on respective OSs, and
> potentially proprietary apps on top of it.
> Simo.

David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at           |                      -- Mark Twain
(416) 223-5943

More information about the samba-technical mailing list