mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
sm, w32: Fix initial keybox creation
* sm/keydb.c (maybe_create_keybox): Open new keybox in bin mode. -- As the header contains a timestamp we will have the conversion problems if the keybox is not opened in binary mode. Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
This commit is contained in:
parent
115a04f939
commit
5ecef193bc
@ -205,7 +205,7 @@ maybe_create_keybox (char *filename, int force, int *r_created)
|
|||||||
|
|
||||||
/* The file does not yet exist, create it now. */
|
/* The file does not yet exist, create it now. */
|
||||||
oldmask = umask (077);
|
oldmask = umask (077);
|
||||||
fp = fopen (filename, "w");
|
fp = fopen (filename, "wb");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
rc = gpg_error_from_syserror ();
|
rc = gpg_error_from_syserror ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user