]> git.donarmstrong.com Git - debbugs.git/commitdiff
add workaround for lynx to use ca-debian/ca-certificates.crt
authorDon Armstrong <don@donarmstrong.com>
Fri, 7 Aug 2015 18:55:39 +0000 (11:55 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 1 Jan 2025 00:20:05 +0000 (16:20 -0800)
scripts/service

index 364a0ed955acd9519a2ea3175ddbc1c1021f5acd..8ec49cc83db2cb1239529449beb025be48dfbd0e 100755 (executable)
@@ -904,9 +904,12 @@ END
 sub sendlynxdocraw {
     my ($relpath,$description) = @_;
     $doc='';
+    # work around DSA cert setup
+    $ENV{SSL_CERT_FILE}='/etc/ssl/ca-debian/ca-certificates.crt';
     open(L,"lynx -nolist -dump $gCGIDomain/\Q$relpath\E 2>&1 |") || die "fork for lynx: $!";
     while(<L>) { $doc.=$_; }
     $!=0; close(L);
+    delete $ENV{SSL_CERT_FILE};
     if ($? == 255 && $doc =~ m/^\n*lynx: Can\'t access start file/) {
         print {$transcript} "Information ($description) is not available -\n".
             "perhaps the $gBug does not exist or is not on the WWW yet.\n";