[Pgp-tools-commit] r754 - trunk/caff
Guilhem Moulin
guilhem-guest at moszumanska.debian.org
Sat Jan 3 18:40:02 UTC 2015
Author: guilhem-guest
Date: 2015-01-03 18:40:02 +0000 (Sat, 03 Jan 2015)
New Revision: 754
Modified:
trunk/caff/caff
Log:
caff: Prevent export of the whole keyring.
Modified: trunk/caff/caff
===================================================================
--- trunk/caff/caff 2015-01-03 11:07:11 UTC (rev 753)
+++ trunk/caff/caff 2015-01-03 18:40:02 UTC (rev 754)
@@ -1082,7 +1082,8 @@
#
sub import_keys_from_gnupghome($$$@) {
my ($keyids, $src_gpghome, $dst_gpghome, @export_options) = @_;
- my %keyids = map { $_ => 1} @$keyids;
+ my %keyids = map {$_ => 1} @$keyids;
+ die "Error: Nothing to export." unless %keyids;
# export the (non-armored) keys to $pipe
trace("Exporting key(s) ".(join ',', @$keyids)." from ".
More information about the Pgp-tools-commit
mailing list