diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-10 19:01:26 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-11 00:23:28 +0200 |
commit | 0d3758807bb2fcce4a2dd7b845b7f6bacb363fa7 (patch) | |
tree | 10e3bf292289263b7067a91202f71411a9897569 /src/exchangedb | |
parent | 123d5077e99253e6c770257eb2830f2bc2aace61 (diff) | |
download | exchange-0d3758807bb2fcce4a2dd7b845b7f6bacb363fa7.tar.xz |
Better calculation of # DKs
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/exchangedb_denomkeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/exchangedb_denomkeys.c b/src/exchangedb/exchangedb_denomkeys.c index 32955dcc1..d9e604ebe 100644 --- a/src/exchangedb/exchangedb_denomkeys.c +++ b/src/exchangedb/exchangedb_denomkeys.c @@ -200,7 +200,7 @@ TALER_EXCHANGEDB_denomination_key_write (const char *filename, if (NULL == (fh = GNUNET_DISK_file_open (filename, GNUNET_DISK_OPEN_WRITE | GNUNET_DISK_OPEN_CREATE | GNUNET_DISK_OPEN_TRUNCATE, - GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE))) + GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE | GNUNET_DISK_OPEN_FAILIFEXISTS))) goto cleanup; wsize = sizeof (struct TALER_EXCHANGEDB_DenominationKeyInformationP); if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh, |