use flags in correct place

This commit is contained in:
Christian Grothoff 2020-02-17 20:05:40 +01:00
parent 730a9b966f
commit 919861aea8
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -207,9 +207,10 @@ 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_OPEN_FAILIFEXISTS)))
| GNUNET_DISK_OPEN_TRUNCATE
| GNUNET_DISK_OPEN_FAILIFEXISTS,
GNUNET_DISK_PERM_USER_READ
| GNUNET_DISK_PERM_USER_WRITE)))
goto cleanup;
wsize = sizeof (struct TALER_EXCHANGEDB_DenominationKeyInformationP);
if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh,