From: Julius Bünger Date: Wed, 28 Nov 2018 10:20:33 +0000 (+0100) Subject: RPS test/profiler: Open file with right flags X-Git-Tag: v0.11.0~196 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=258520769186360519c61f43d8856c2fa01e7c16;p=oweals%2Fgnunet.git RPS test/profiler: Open file with right flags --- 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); }