[git] GnuPG - branch, master, updated. gnupg-2.1.15-262-gf7e5063

by Andre Heinecke cvs at cvs.gnupg.org
Fri Oct 21 15:02:55 CEST 2016


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, master has been updated
       via  f7e50634be71ce3028726f23edf14454109a04a8 (commit)
      from  d2653b1a6db90aed073194a51fd61023d69773ec (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 f7e50634be71ce3028726f23edf14454109a04a8
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Fri Oct 21 14:59:26 2016 +0200

    g10: Write first keybox record in binary mode
    
    * g10/keydb.c (maybe_create_keyring_or_box): Open in binary mode.
    
    --
    This fixes keybox corruption on windows.
    
    Signed-off-by: Andre Heinecke <aheinecke at intevation.de>

diff --git a/g10/keydb.c b/g10/keydb.c
index e49e25f..b959f05 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -415,7 +415,7 @@ maybe_create_keyring_or_box (char *filename, int is_box, int force_create)
      that the detection magic will work the next time it is used.  */
   if (is_box)
     {
-      FILE *fp = fopen (filename, "w");
+      FILE *fp = fopen (filename, "wb");
       if (!fp)
         rc = gpg_error_from_syserror ();
       else

-----------------------------------------------------------------------

Summary of changes:
 g10/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