diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-19 18:43:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-19 18:43:38 +0100 |
commit | 3636ea628d051cf2ba7a9038c50528c561d0aeaa (patch) | |
tree | 87664b904950052e8b6997a371ed5ecb1ea4b310 /src/testbed | |
parent | 74d7528e6bd53cf5acc939c63a5be74a001e5ce1 (diff) | |
download | gnunet-3636ea628d051cf2ba7a9038c50528c561d0aeaa.tar.gz gnunet-3636ea628d051cf2ba7a9038c50528c561d0aeaa.zip |
change GNUNET_DISK_fn_write() to always do atomic writes and to NOT overwrite existing files; also change the return value to not return the size of the written file but GNUNET_OK on success, and integrate creating the directory if needed; breaks API, hence bumping libgnunetutil version
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet_mpi_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testbed/gnunet_mpi_test.c b/src/testbed/gnunet_mpi_test.c index e0caf9676..241e5c53e 100644 --- a/src/testbed/gnunet_mpi_test.c +++ b/src/testbed/gnunet_mpi_test.c | |||
@@ -49,7 +49,7 @@ main (int argc, char *argv[]) | |||
49 | (void) GNUNET_asprintf (&filename, "%d-%d.mpiout", (int) pid, rank); | 49 | (void) GNUNET_asprintf (&filename, "%d-%d.mpiout", (int) pid, rank); |
50 | msg_size = GNUNET_asprintf (&msg, "My rank is: %d\n", rank); | 50 | msg_size = GNUNET_asprintf (&msg, "My rank is: %d\n", rank); |
51 | printf ("%s", msg); | 51 | printf ("%s", msg); |
52 | if (msg_size == | 52 | if (GNUNET_OK == |
53 | GNUNET_DISK_fn_write (filename, msg, msg_size, | 53 | GNUNET_DISK_fn_write (filename, msg, msg_size, |
54 | GNUNET_DISK_PERM_USER_READ | 54 | GNUNET_DISK_PERM_USER_READ |
55 | | GNUNET_DISK_PERM_GROUP_READ | 55 | | GNUNET_DISK_PERM_GROUP_READ |