svn commit: samba r12341 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch

gd at samba.org gd at samba.org
Mon Dec 19 03:02:56 GMT 2005


Author: gd
Date: 2005-12-19 03:02:56 +0000 (Mon, 19 Dec 2005)
New Revision: 12341

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12341

Log:
add DEBUG statement.

Guenther

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
   trunk/source/nsswitch/winbindd_cache.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2005-12-19 02:50:15 UTC (rev 12340)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2005-12-19 03:02:56 UTC (rev 12341)
@@ -546,8 +546,10 @@
 
 	len = strlen(s);
 	/* can't handle more than 254 char strings. Truncating is probably best */
-	if (len > 254)
+	if (len > 254) {
+		DEBUG(10,("centry_put_string: truncating len (%d) to: 254\n", len));
 		len = 254;
+	}
 	centry_put_uint8(centry, len);
 	centry_expand(centry, len);
 	memcpy(centry->data + centry->ofs, s, len);

Modified: trunk/source/nsswitch/winbindd_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cache.c	2005-12-19 02:50:15 UTC (rev 12340)
+++ trunk/source/nsswitch/winbindd_cache.c	2005-12-19 03:02:56 UTC (rev 12341)
@@ -600,8 +600,10 @@
 
 	len = strlen(s);
 	/* can't handle more than 254 char strings. Truncating is probably best */
-	if (len > 254)
+	if (len > 254) {
+		DEBUG(10,("centry_put_string: truncating len (%d) to: 254\n", len));
 		len = 254;
+	}
 	centry_put_uint8(centry, len);
 	centry_expand(centry, len);
 	memcpy(centry->data + centry->ofs, s, len);



More information about the samba-cvs mailing list