From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:15 +0000 (+0000) Subject: cscvs to tla changeset 121 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/44169bea490150f3c2bb2b20ba086cae77d89041 cscvs to tla changeset 121 Author: noodles Date: 2004/05/26 17:46:21 Fix readonly opening of the db (we can't have CREATE | READONLY...) --- diff --git a/keydb_db3.c b/keydb_db3.c index 247cbab..e25b94e 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: keydb_db3.c,v 1.24 2004/03/28 21:27:03 noodles Exp $ + * $Id: keydb_db3.c,v 1.25 2004/05/26 17:46:21 noodles Exp $ */ #include @@ -201,7 +201,7 @@ void initdb(bool readonly) snprintf(buf, 1023, "keydb.%d.db", i); flags = DB_CREATE; if (readonly) { - flags |= DB_RDONLY; + flags = DB_RDONLY; } ret = dbconns[i]->open(dbconns[i], buf, NULL,