]> git.pld-linux.org Git - packages/fetch-crl.git/blame - no-modify-template.patch
- avoid modifying element in hash
[packages/fetch-crl.git] / no-modify-template.patch
CommitLineData
6051a581
ER
1with Perl 5.12.3 we changed $self->{"nametemplate_pem"} via $file modification
2
3with such config:
4nametemplate_pem = @ALIAS@.r@R@.pem
5infodir = /etc/pki/esteid
6cadir = /etc/pki/esteid
7output = /etc/pki/esteid/crl
8formats = openssl, pem
9
10it tried to:
11VERBOSE(3) Writing PEM file /etc/pki/esteid/crl//etc/pki/esteid/crl/ESTEID-SK_2007.r0.pem
12should had been:
13VERBOSE(3) Writing PEM file /etc/pki/esteid/crl/ESTEID-SK_2007.r0.pem
14
15--- fetch-crl-3.0.6/fetch-crl 2011-03-20 05:01:20.000000000 +0200
16+++ fetch-crl-3.0.6/fetch-crl 2011-06-11 11:30:58.731040625 +0300
17@@ -1873,13 +1879,14 @@
18 $::cnf->{_}->{"output_der"}, $::cnf->{_}->{"output_pem"},
19 $::cnf->{_}->{"output_nss"}, $::cnf->{_}->{"output_openssl"}) ) {
20 defined $output and $output or next;
21- foreach my $file (
22+ foreach my $ref (
23 $self->{"nametemplate_der"},
24 $self->{"nametemplate_pem"},
25 $self->{"alias"}.".r\@R\@",
26 $self->{"anchorname"}.".r\@R\@",
27 ) {
28- next unless $file;
29+ next unless $ref;
30+ my $file = $ref; # copy, not to change original
31 $file =~ s/\@R\@/$i/g;
32 $file = join "/", $output, $file;
33 next if ! -e $file;
This page took 0.056809 seconds and 4 git commands to generate.