From a93e4cc4e4ba28e984d55d595d16af372611025a Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer <gautier.pelloux-prayer@belledonne-communications.com> Date: Wed, 15 Jun 2016 10:35:17 +0200 Subject: [PATCH] mk-ca-bundle.pl: die if no certs have been processed (currently happening due to mozilla website maintenance) --- scripts/mk-ca-bundle.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/mk-ca-bundle.pl b/scripts/mk-ca-bundle.pl index 283ebd13cd..b397b25410 100755 --- a/scripts/mk-ca-bundle.pl +++ b/scripts/mk-ca-bundle.pl @@ -222,6 +222,11 @@ while (<TXT>) { } close(TXT) or die "Couldn't close $txt: $!\n"; close(CRT) or die "Couldn't close $crt.~: $!\n"; + +# this may happen if website is in maintenance - 200 OK is returned but it returns +# a HTML maintenance page instead of expected file +die "No certs processed (invalid input file?)!" if ($certnum == 0 and $skipnum == 0); + unless( $stdout ) { if ($opt_b && -e $crt) { my $bk = 1; -- GitLab