aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-258520769186360519c61f43d8856c2fa01e7c16.tar.gz
gnunet-258520769186360519c61f43d8856c2fa01e7c16.zip
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)
88 &hash)) 88 &hash))
89 { 89 {
90 fh = GNUNET_DISK_file_open (name, 90 fh = GNUNET_DISK_file_open (name,
91 GNUNET_DISK_OPEN_WRITE |
92 GNUNET_DISK_OPEN_CREATE |
91 GNUNET_DISK_OPEN_APPEND, 93 GNUNET_DISK_OPEN_APPEND,
92 GNUNET_DISK_PERM_USER_READ | 94 GNUNET_DISK_PERM_USER_READ |
93 GNUNET_DISK_PERM_USER_WRITE | 95 GNUNET_DISK_PERM_USER_WRITE |
@@ -95,7 +97,7 @@ get_file_handle (const char *name)
95 if (NULL == fh) 97 if (NULL == fh)
96 { 98 {
97 LOG (GNUNET_ERROR_TYPE_ERROR, 99 LOG (GNUNET_ERROR_TYPE_ERROR,
98 "Openning file `%s' failed.\n", 100 "Opening file `%s' failed.\n",
99 name); 101 name);
100 GNUNET_assert (0); 102 GNUNET_assert (0);
101 } 103 }