git » nmdb » commit 1f3b3f7

qdbm backend: Create the database if it doesn't exist.

author Alberto Bertogli
2007-07-30 16:19:11 UTC
committer Alberto Bertogli
2007-07-30 16:19:11 UTC
parent f0976fa2bc4666c00501fad0382fac3d77ff1435

qdbm backend: Create the database if it doesn't exist.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

nmdb/be-qdbm.c +1 -1

diff --git a/nmdb/be-qdbm.c b/nmdb/be-qdbm.c
index d247d1d..3c98f9b 100644
--- a/nmdb/be-qdbm.c
+++ b/nmdb/be-qdbm.c
@@ -9,7 +9,7 @@ db_t *db_open(const char *name, int flags)
 {
 	int f;
 
-	f = DP_OREADER | DP_OWRITER | DP_ONOLCK;
+	f = DP_OREADER | DP_OWRITER | DP_ONOLCK | DP_OCREAT;
 	return dpopen(name, f, 0);
 }