Ticket #46601: caff.diff

File caff.diff, 836 bytes (added by ewen-naos-nz (Ewen McNeill), 10 years ago)

caff: avoid redirecting stderr when listing keys

  • (a) caff-bkup-2015-01-18 vs. (b) caff

    a b  
    14081408                'always_trust' => 1,
    14091409                'extra_args' => [ qw{ --no-auto-check-trustdb --fingerprint --with-colons --fixed-list-mode } ] );
    14101410
    1411         my $handles = make_gpg_fds( stdin => $NULL, stdout => undef, stderr => $NULL );
     1411        # 2015-01-18 - it appears that setting stderr to '+</dev/null' ($NULL)
     1412        # will cause GPG to fail to run/be run to find the key :-(
     1413        #
     1414        # So we explicitly set it to STDERR
     1415        #
     1416        #my $handles = make_gpg_fds( stdin => $NULL, stdout => undef, stderr => $NULL );
     1417        my $handles = make_gpg_fds( stdin => $NULL, stdout => undef, stderr => \*STDERR );
    14121418        # process the keys one by one so we can detect collisions
    14131419        my $pid = $gpg->list_public_keys( handles => $handles, command_args => [$keyid] );
    14141420