summaryrefslogtreecommitdiff
path: root/sm
diff options
context:
space:
mode:
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 87fc12d..d85679a 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 ();