]> the.earth.li Git - onak.git/commitdiff
cscvs to tla changeset 121
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:15 +0000 (23:48 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:15 +0000 (23:48 +0000)
Author: noodles
Date: 2004/05/26 17:46:21
Fix readonly opening of the db (we can't have CREATE | READONLY...)

keydb_db3.c

index 247cbabf3e89f88250be67f9de74da254f6e0efb..e25b94ec9afbc984037d61aec92088ba2c1b2ce5 100644 (file)
@@ -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 <assert.h>
@@ -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,