summaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-11-28 11:20:33 +0100
committerJulius Bünger <buenger@mytum.de>2018-11-28 11:20:33 +0100
commit258520769186360519c61f43d8856c2fa01e7c16 (patch)
tree6d259ac88c684f6f76ff9f8c72751045aacbd7f1 /src/rps/rps-test_util.c
parentfa70626ca03dde3b4554dd71935f5f9a58b90302 (diff)
RPS test/profiler: Open file with right flags
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index 4383c7149..6644a1c20 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -88,6 +88,8 @@ get_file_handle (const char *name)
&hash))
{
fh = GNUNET_DISK_file_open (name,
+ GNUNET_DISK_OPEN_WRITE |
+ GNUNET_DISK_OPEN_CREATE |
GNUNET_DISK_OPEN_APPEND,
GNUNET_DISK_PERM_USER_READ |
GNUNET_DISK_PERM_USER_WRITE |
@@ -95,7 +97,7 @@ get_file_handle (const char *name)
if (NULL == fh)
{
LOG (GNUNET_ERROR_TYPE_ERROR,
- "Openning file `%s' failed.\n",
+ "Opening file `%s' failed.\n",
name);
GNUNET_assert (0);
}