svn commit: samba r2713 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

tridge at samba.org tridge at samba.org
Tue Sep 28 09:34:50 GMT 2004


Author: tridge
Date: 2004-09-28 09:34:49 +0000 (Tue, 28 Sep 2004)
New Revision: 2713

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib/ldb/ldb_tdb&rev=2713&nolog=1

Log:
better handling of binary values in index key creation


Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2004-09-28 08:17:20 UTC (rev 2712)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2004-09-28 09:34:49 UTC (rev 2713)
@@ -70,7 +70,7 @@
 		return ret;
 	}
 
-	ldb_asprintf(ldb, &ret, "%s:%s:%s", LTDB_INDEX, attr, (char *)value->data);
+	ldb_asprintf(ldb, &ret, "%s:%s:%.*s", LTDB_INDEX, attr, value->length, (char *)value->data);
 	return ret;
 }
 



More information about the samba-cvs mailing list