[Pkg-gnupg-commit] [gnupg2] 56/292: gpg: Make sure that internal key import is done with a binary stream.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 829949f3823c2306022928ce782f9c9d9c5f1cc8
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Sep 28 13:36:28 2016 +0200

    gpg: Make sure that internal key import is done with a binary stream.
    
    * g10/import.c (import_keys_internal): Open stream in binary mode.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 g10/import.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/import.c b/g10/import.c
index f32a3da..6a0dcde 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -465,7 +465,7 @@ import_keys_es_stream (ctrl_t ctrl, estream_t fp,
   int rc;
   iobuf_t inp;
 
-  inp = iobuf_esopen (fp, "r", 1);
+  inp = iobuf_esopen (fp, "rb", 1);
   if (!inp)
     {
       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