BSL-specific Description: our glibc has strncpy and strlcat already. Sergei Butakov --- samba-3.0.34/source/client/mount.cifs.c 2009-03-19 16:43:11.096821555 +0500 +++ samba-3.0.34/source/client/mount.cifs.c.bak 2009-03-19 16:46:08.446952719 +0500 @@ -88,7 +88,7 @@ /* like strncpy but does not 0 fill the buffer and always null * terminates. bufsize is the size of the destination buffer */ -static size_t strlcpy(char *d, const char *s, size_t bufsize) +/*static size_t strlcpy(char *d, const char *s, size_t bufsize) { size_t len = strlen(s); size_t ret = len; @@ -98,11 +98,11 @@ d[len] = 0; return ret; } - +*/ /* like strncat but does not 0 fill the buffer and always null * terminates. bufsize is the length of the buffer, which should * be one more than the maximum resulting string length */ -static size_t strlcat(char *d, const char *s, size_t bufsize) +/*static size_t strlcat(char *d, const char *s, size_t bufsize) { size_t len1 = strlen(d); size_t len2 = strlen(s); @@ -120,7 +120,7 @@ } return ret; } - +*/ /* BB finish BB cifs_umount