[Rt-commit] r10093 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Mon Dec 24 18:50:37 EST 2007
Author: ruz
Date: Mon Dec 24 18:50:36 2007
New Revision: 10093
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
Log:
r9913 at cubic-pc (orig r9912): ruz | 2007-12-12 19:47:13 +0300
* correctly list all keys if key_id(email, id of fpr) is empty
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm Mon Dec 24 18:50:36 2007
@@ -1772,7 +1772,7 @@
eval {
local $SIG{'CHLD'} = 'DEFAULT';
my $method = $type eq 'private'? 'list_secret_keys': 'list_public_keys';
- my $pid = _safe_run_child { $gnupg->$method( handles => $handles, command_args => [ $email ] ) };
+ my $pid = _safe_run_child { $gnupg->$method( handles => $handles, $email? (command_args => $email) : () ) };
close $handle{'input'};
waitpid $pid, 0;
};
More information about the Rt-commit
mailing list