RPS test/profiler: Open file with right flags
authorJulius Bünger <buenger@mytum.de>
Wed, 28 Nov 2018 10:20:33 +0000 (11:20 +0100)
committerJulius Bünger <buenger@mytum.de>
Wed, 28 Nov 2018 10:20:33 +0000 (11:20 +0100)
src/rps/rps-test_util.c

index 4383c714992a8d93aac57545d536a31f8fa920bf..6644a1c20f3e8a43b619e5a04688e35ca527d911 100644 (file)
@@ -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);
     }