Package: tinyca Version: 0.7.5-2 Tags: patch when you export a tar file from tinyca2, the files inside the tar archive have the full path (e.g. /home/cas/.TinyCA2/tmp/cacert.pem).
GNU tar's '--transform' option can be used to strip the directories from the filenames when the tar file is created. I've included a patch to do this below: --- CERT.pm.orig 2006-07-26 06:12:00.000000000 +1000 +++ CERT.pm 2010-04-17 18:40:37.370205740 +1000 @@ -598,7 +598,10 @@ $tmpcacert, $tmpkey, $tmpcert); my $ret = $? >> 8; } elsif ($opts->{'format'} eq "TAR") { - system($main->{'init'}->{'tarbin'}, 'cfv', $opts->{'outfile'}, + my $tmpdir_re = $main->{'tmpdir'}; + $tmpdir_re =~ s=^/==; + + system($main->{'init'}->{'tarbin'}, 'cfv', $opts->{'outfile'}, '--transform', 's=' . $tmpdir_re . '/==', $tmpcacert, $tmpkey, $tmpcert); } --- KEY.pm.orig 2006-07-26 06:12:00.000000000 +1000 +++ KEY.pm 2010-04-17 18:40:42.686433486 +1000 @@ -365,7 +365,10 @@ $tmpcacert, $tmpkey, $tmpcert); my $ret = $? >> 8; } elsif ($opts->{'format'} eq 'TAR') { - system($main->{'init'}->{'tarbin'}, 'cfv', $opts->{'outfile'}, + my $tmpdir_re = $main->{'tmpdir'}; + $tmpdir_re =~ s=^/==; + + system($main->{'init'}->{'tarbin'}, 'cfv', $opts->{'outfile'}, '--transform', 's=' . $tmpdir_re . '/==', $tmpcacert, $tmpkey, $tmpcert); my $ret = $? >> 8; } It's just a simple patch. A better version would be to transform $main->{tmpdir} to the certificate's CN (i made an attempt to do that, but wasn't able to figure out if that information was currently available to the export routine, or if it would require more substantial changes to the code) this should probably be forwarded upstream. craig -- craig sanders <c...@taz.net.au> -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org