]>
Commit | Line | Data |
---|---|---|
6051a581 ER |
1 | with Perl 5.12.3 we changed $self->{"nametemplate_pem"} via $file modification |
2 | ||
3 | with such config: | |
4 | nametemplate_pem = @ALIAS@.r@R@.pem | |
5 | infodir = /etc/pki/esteid | |
6 | cadir = /etc/pki/esteid | |
7 | output = /etc/pki/esteid/crl | |
8 | formats = openssl, pem | |
9 | ||
10 | it tried to: | |
11 | VERBOSE(3) Writing PEM file /etc/pki/esteid/crl//etc/pki/esteid/crl/ESTEID-SK_2007.r0.pem | |
12 | should had been: | |
13 | VERBOSE(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; |