[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 21/208: mk-ca-bundle.pl: Check curl's exit code aft
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 21/208: mk-ca-bundle.pl: Check curl's exit code after certdata download |
Date: |
Wed, 09 Aug 2017 17:33:38 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.
commit ec92afc3f4b2ecdd26b01b6a59e8fbddd5783e67
Author: Jay Satiro <address@hidden>
AuthorDate: Fri Jun 16 01:58:23 2017 -0400
mk-ca-bundle.pl: Check curl's exit code after certdata download
- No longer allow partial downloads of certdata.
Prior to this change partial downloads were (erroneously?) allowed since
only the server code was checked to be 200.
Bug: https://github.com/curl/curl/pull/1577
Reported-by: Matteo B.
---
lib/mk-ca-bundle.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl
index 9574f1dbf..cc36c7680 100755
--- a/lib/mk-ca-bundle.pl
+++ b/lib/mk-ca-bundle.pl
@@ -310,7 +310,7 @@ if(!$opt_n) {
my $proto = !$opt_k ? "--proto =https" : "";
my $quiet = $opt_q ? "-s" : "";
my @out = `curl -w %{response_code} $proto $quiet -o "$txt" "$url"`;
- if(@out && $out[0] == 200) {
+ if(!$? && @out && $out[0] == 200) {
$fetched = 1;
report "Downloaded $txt";
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 07/208: curl/curlver.h: start working on 7.55.0, (continued)
- [GNUnet-SVN] [gnurl] 07/208: curl/curlver.h: start working on 7.55.0, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 08/208: RELEASE-NOTES: synced with 2ad80eec5, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 11/208: lib/curl_setup.h: remove CURL_WANTS_CA_BUNDLE_ENV, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 18/208: http-proxy: fix build with --disable-proxy or --disable-http, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 15/208: fuzz: bring oss-fuzz initial code converted to C89, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 10/208: test1147: verify -H on a file, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 16/208: fuzz: corpora file structure, initial commit, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 14/208: http-proxy: only attempt FTP over HTTP proxy, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 27/208: libtest/libntlmconnect: fix compiler warnings from f94fcdb, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 23/208: test1061: mark as flaky, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 21/208: mk-ca-bundle.pl: Check curl's exit code after certdata download,
gnunet <=
- [GNUnet-SVN] [gnurl] 28/208: http-proxy: deal with EAGAIN, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 19/208: configure: disable nghttp2 too if HTTP has been disabled, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 39/208: http_proxy: fix compiler warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 32/208: curl-compilers.m4: enable missing-variable-declarations clang warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 41/208: CURLOPT_PREQUOTE.3: spellfix man page reference, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 38/208: TODO: update the TOC too, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 24/208: test1148: verify the -# progressbar, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 30/208: curl-compilers.m4: enable vla warning for clang, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 34/208: Makefile.m32: enable -W for MinGW32 build, gnunet, 2017/08/09