summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 11:11:55 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:42 +0100
commit8b2b7d1c87b475b61ef5259cee0ae77afe47a667 (patch)
treeb69e4278b3ddc008de19c06d290e6b247f406239 /source4/scripting/python/samba/tests
parent8581f0b429e225406ab09e83be20e732c1424fca (diff)
s3:smbd: remember the smbd_server_connection on pending_message_list
metze
Diffstat (limited to 'source4/scripting/python/samba/tests')
0 files changed, 0 insertions, 0 deletions
BILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Provide strlcpy and strlcat for platforms that don't have them. */ #include "k5-platform.h" #include <sys/types.h> #include <string.h> /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t krb5int_strlcpy(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; size_t n = siz; /* Copy as many bytes as will fit */ if (n != 0) { while (--n != 0) { if ((*d++ = *s++) == '\0') break; } } /* Not enough room in dst, add NUL and traverse rest of src */ if (n == 0) {