Hello, everyone!
Here is a patch that makes c_rehash work with filenames containing unfriendly
characters... Am I the only one having ampersands in certificate file names?
:-P
It is SO simple I did not want to post it at first... If it is already solved
in the CVS or wherever, then I am sorry I have bothered you.
Have a good time.
Rudo Thomas.
ps: If you happen to reply, please send CC to me, as I am not subscribed to
the list.
--- c_rehash-orig Mon Jun 18 21:54:03 2001
+++ c_rehash Fri Aug 17 02:27:56 2001
@@ -100,7 +100,7 @@
sub link_hash_cert {
my $fname = $_[0];
- my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in $fname`;
+ my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in "$fname"`;
chomp $hash;
chomp $fprint;
$fprint =~ s/^.*=//;
@@ -130,7 +130,7 @@
sub link_hash_crl {
my $fname = $_[0];
- my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in $fname`;
+ my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in "$fname"`;
chomp $hash;
chomp $fprint;
$fprint =~ s/^.*=//;