Hello,
SM --> dkim-milter-discuss (2008-03-28 18:25:38 -0700):
> See attached patch. This is applicable for version 2.5.2 as well.
>
> This is a quick fix. If it doesn't work for other operating systems,
> please post to the list.
>
[...]
> --- dkim-filter/dkim-db.c.orig 2008-03-11 14:17:25.000000000 -0700
> +++ dkim-filter/dkim-db.c 2008-03-28 18:16:26.000000000 -0700
> @@ -79,7 +79,7 @@
> status = db_open(file, dbtype, flags, DB_MODE, NULL, NULL, db);
> #else /* DB_VERSION_MAJOR < 2 */
> *db = dbopen(file, (ro ? O_RDONLY :(O_CREAT|O_RDWR)), DB_MODE,
> - dbtype, NULL);
> + DB_HASH, NULL);
> if (*db == NULL)
> status = errno;
> #endif /* DB_VERSION_CHECK */
thanks. I fixed it in a slightly different way (see attached patch).
The problem seems to be `dbtype' not being initialized if
DB_VERSION_CHECK(2,0,0) is false. Both DB_HASH and DB_BTREE seem to
work fine.
BTW: why was the file format changed from hash to btree?
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--- dkim-filter/dkim-db.c.orig 2008-03-11 22:17:25.000000000 +0100
+++ dkim-filter/dkim-db.c 2008-03-29 10:25:26.000000000 +0100
@@ -46,7 +46,7 @@ dkimf_db_open(DB **db, const char *file,
int flags = 0;
#endif /* DB_VERSION_CHECK(2,0,0) */
int status = 0;
- DBTYPE dbtype;
+ DBTYPE dbtype = DB_BTREE;
assert(db != NULL);
assert(file != NULL);
@@ -60,7 +60,6 @@ dkimf_db_open(DB **db, const char *file,
else
{
flags |= DB_CREATE;
- dbtype = DB_BTREE;
}
#endif /* DB_VERSION_CHECK(2,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