db error from bogofilter and bogoutil

Gyepi SAM gyepi at praxis-sw.com
Wed Oct 30 02:41:11 CET 2002


On Tue, Oct 29, 2002 at 03:23:09PM -0800, Dan Stromberg wrote:
> I'm getting:
> bogofilter (db) open: /Dcs/staff/strombrg/.bogofilter/goodlist.db: Invalid
> argument

> Does anyone have a suggestion?

Yes. The docs for db 4.1 suggested opening the databases in autocommit mode,
but that conflicts with other flags. Try the attached patch, which is also in cvs.

-Gyepi  
-------------- next part --------------
Index: datastore_db.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/datastore_db.c,v
retrieving revision 1.17
diff -B -u -b -r1.17 datastore_db.c
--- datastore_db.c	28 Oct 2002 15:11:04 -0000	1.17
+++ datastore_db.c	30 Oct 2002 01:36:51 -0000
@@ -87,7 +87,7 @@
     }
     else if
 #if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0
-    ((ret = handle->dbp->open(handle->dbp, NULL, db_file, NULL, DB_BTREE, opt_flags | DB_AUTO_COMMIT, 0664)) != 0)
+    ((ret = handle->dbp->open(handle->dbp, NULL, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0)
 #else
     ((ret = handle->dbp->open (handle->dbp, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0)
 #endif	    



More information about the Bogofilter mailing list