[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.2-3-g5ecef19
by Andre Heinecke
cvs at cvs.gnupg.org
Tue Nov 14 12:26:52 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, STABLE-BRANCH-2-2 has been updated
via 5ecef193bc2144e6d51a6bd5727bfd08a0d28b66 (commit)
from 115a04f939de4d7f9322a01aa5500e475e98e61f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
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>
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 ();
-----------------------------------------------------------------------
Summary of changes:
sm/keydb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list