[Pkg-gnupg-commit] [gnupg2] 42/292: dirmngr: Open file CRL's in binary mode
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Nov 21 06:31:24 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 4644c27514f34f5efc555d43672a25088a611a72
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Thu Aug 25 18:15:52 2016 +0200
dirmngr: Open file CRL's in binary mode
* dirmngr/crlcache.c (crl_cache_load): Open file in binary mode.
--
This fixes conversion bugs with binary CRL's on Windows.
GnuPG-bug-id: issue2448
Signed-off-by: Andre Heinecke <aheinecke at intevation.de>
---
dirmngr/crlcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dirmngr/crlcache.c b/dirmngr/crlcache.c
index 388754b..94d5f5f 100644
--- a/dirmngr/crlcache.c
+++ b/dirmngr/crlcache.c
@@ -2408,7 +2408,7 @@ crl_cache_load (ctrl_t ctrl, const char *filename)
estream_t fp;
ksba_reader_t reader;
- fp = es_fopen (filename, "r");
+ fp = es_fopen (filename, "rb");
if (!fp)
{
err = gpg_error_from_errno (errno);
--
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