aboutsummaryrefslogtreecommitdiff
path: root/src/namecache
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2015-08-11 16:35:35 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2015-08-11 16:35:35 +0000
commitd8c59dd413582fa45a0d1e7e23d81ca91a873180 (patch)
treee0ea00cf43bfaa46d0891a5510bbce914a842dcd /src/namecache
parent2d630d193cc35df1481ddce4154c22c172e0b8af (diff)
- fix
Diffstat (limited to 'src/namecache')
-rw-r--r--src/namecache/plugin_namecache_flat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namecache/plugin_namecache_flat.c b/src/namecache/plugin_namecache_flat.c
index db69ac9276..100a75eb7c 100644
--- a/src/namecache/plugin_namecache_flat.c
+++ b/src/namecache/plugin_namecache_flat.c
@@ -109,7 +109,8 @@ database_setup (struct Plugin *plugin)
plugin->hm = GNUNET_CONTAINER_multihashmap_create (10,
GNUNET_NO);
fh = GNUNET_DISK_file_open (afsdir,
- GNUNET_DISK_OPEN_CREATE,
+ GNUNET_DISK_OPEN_CREATE |
+ GNUNET_DISK_OPEN_READWRITE,
GNUNET_DISK_PERM_USER_WRITE |
GNUNET_DISK_PERM_USER_READ);
if (NULL == fh)