use flags in correct place
This commit is contained in:
parent
730a9b966f
commit
919861aea8
@ -207,9 +207,10 @@ TALER_EXCHANGEDB_denomination_key_write (const char *filename,
|
|||||||
if (NULL == (fh = GNUNET_DISK_file_open
|
if (NULL == (fh = GNUNET_DISK_file_open
|
||||||
(filename,
|
(filename,
|
||||||
GNUNET_DISK_OPEN_WRITE | GNUNET_DISK_OPEN_CREATE
|
GNUNET_DISK_OPEN_WRITE | GNUNET_DISK_OPEN_CREATE
|
||||||
| GNUNET_DISK_OPEN_TRUNCATE,
|
| GNUNET_DISK_OPEN_TRUNCATE
|
||||||
GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE
|
| GNUNET_DISK_OPEN_FAILIFEXISTS,
|
||||||
| GNUNET_DISK_OPEN_FAILIFEXISTS)))
|
GNUNET_DISK_PERM_USER_READ
|
||||||
|
| GNUNET_DISK_PERM_USER_WRITE)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
wsize = sizeof (struct TALER_EXCHANGEDB_DenominationKeyInformationP);
|
wsize = sizeof (struct TALER_EXCHANGEDB_DenominationKeyInformationP);
|
||||||
if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh,
|
if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh,
|
||||||
|
Loading…
Reference in New Issue
Block a user