summaryrefslogtreecommitdiff
path: root/Echolot/Conf.pm
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-10-22 21:00:59 +0200
committerPeter Palfrader <peter@palfrader.org>2014-10-22 21:00:59 +0200
commit7d788514693cfc5c94bf9c4306ff9cc082e96330 (patch)
tree3e2f7607cf91ae453963c4177d5c3489f8b83bca /Echolot/Conf.pm
parent0de3b1bc5a595e0ca3ac73d73ed8a161a543f355 (diff)
Work with newer GnuPG::Interface versions again
Newer GnuPG::Interface versions are more picky when it comes to command and command_args. Previously, they would accept things in any order and would not care which of the two arrays had which. Now, command_args is really limited to have arguments for the command listed in command. Any options go with, and in front of, the command.
Diffstat (limited to 'Echolot/Conf.pm')
-rw-r--r--Echolot/Conf.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Echolot/Conf.pm b/Echolot/Conf.pm
index 3d57543..0ccd117 100644
--- a/Echolot/Conf.pm
+++ b/Echolot/Conf.pm
@@ -387,8 +387,7 @@ sub parse_cpunk_key($$$) {
for my $key (@pgp_keys) {
my ( $stdin_fh, $stdout_fh, $stderr_fh, $status_fh, $handles ) = Echolot::Tools::make_gpg_fds();
my $pid = $GnuPG->wrap_call(
- commands => [qw{--with-colons}],
- command_args => [qw{--no-options --no-secmem-warning --no-default-keyring --fast-list-mode}],
+ commands => [qw{--with-colons --no-options --no-secmem-warning --no-default-keyring --fast-list-mode}],
handles => $handles );
my ($stdout, $stderr, $status) = Echolot::Tools::readwrite_gpg($key, $stdin_fh, $stdout_fh, $stderr_fh, $status_fh);
waitpid $pid, 0;