This patch is even better (and simpler), and works for pre-DB 2.0.0 as well.
Index: dkim-db.c
===================================================================
RCS file: /cvs/dkim-filter/dkim-db.c,v
retrieving revision 1.7
retrieving revision 1.9
diff -u -r1.7 -r1.9
--- dkim-db.c   11 Mar 2008 21:17:25 -0000      1.7
+++ dkim-db.c   30 Mar 2008 05:40:49 -0000      1.9
@@ -2,11 +2,11 @@
 **  Copyright (c) 2008 Sendmail, Inc. and its suppliers.
 **     All rights reserved.
 **
-**  $Id: dkim-db.c,v 1.7 2008/03/11 21:17:25 msk Exp $
+**  $Id: dkim-db.c,v 1.9 2008/03/30 05:40:49 msk Exp $
 */
 
 #ifndef lint
-static char dkim_db_c_id[] = "@(#)$Id: dkim-db.c,v 1.7 2008/03/11 21:17:25 msk 
Exp $";
+static char dkim_db_c_id[] = "@(#)$Id: dkim-db.c,v 1.9 2008/03/30 05:40:49 msk 
Exp $";
 #endif /* !lint */
 
 #ifdef USE_DB
@@ -60,8 +60,10 @@
        else
        {
                flags |= DB_CREATE;
-               dbtype = DB_BTREE;
+               dbtype = DB_HASH;
        }
+#else /* DB_VERSION_CHECK(2,0,0) */
+       dbtype = DB_HASH;
 #endif /* DB_VERSION_CHECK(2,0,0) */
 
 #if DB_VERSION_CHECK(3,0,0)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to