summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-11-15 11:01:10 +0100
committerWerner Koch <wk@gnupg.org>2017-11-15 11:01:10 +0100
commit091c4af64543cf95d92e09664b5eb1b729782064 (patch)
tree1abe5f5a75a39852e5e78f17efed1d4f86426afe /sm
parentdirmngr: Check for WKD support at session end (diff)
parentdoc: Add man page for gpgtar (diff)
downloadgnupg2-091c4af64543cf95d92e09664b5eb1b729782064.tar.xz
gnupg2-091c4af64543cf95d92e09664b5eb1b729782064.zip
Merge branch 'STABLE-BRANCH-2-2'
-- Kept our AUTHORS and README
Diffstat (limited to 'sm')
-rw-r--r--sm/keydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keydb.c b/sm/keydb.c
index 87fc12d0e..d85679a3b 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -205,7 +205,7 @@ maybe_create_keybox (char *filename, int force, int *r_created)
/* The file does not yet exist, create it now. */
oldmask = umask (077);
- fp = fopen (filename, "w");
+ fp = fopen (filename, "wb");
if (!fp)
{
rc = gpg_error_from_syserror ();