From 44169bea490150f3c2bb2b20ba086cae77d89041 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:15 +0000 Subject: [PATCH] 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...) --- keydb_db3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.5