[Pkg-gnupg-commit] [gnupg2] 03/20: sm, w32: Fix initial keybox creation
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Dec 1 01:51:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 5ecef193bc2144e6d51a6bd5727bfd08a0d28b66
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Tue Nov 14 12:24:52 2017 +0100
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 at intevation.de>
---
sm/keydb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list