samba-cvs.cvs
[Top] [All Lists]

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

Subject: svn commit: samba r12341 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch
From:
Date: Mon, 19 Dec 2005 03:02:56 +0000 GMT
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);

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r12341 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch, gd <=