[Pkg-privacy-commits] [msva-perl] 251/356: avoid some spurious error messages when no agent is found
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit 9ea3303104b15dee62451b9855e4691d7d0595bc
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Mon Dec 20 16:11:39 2010 -0500
avoid some spurious error messages when no agent is found
---
Crypt/Monkeysphere/MSVA.pm | 4 ++++
gpgkeys_hkpms | 1 +
2 files changed, 5 insertions(+)
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index bd81606..cadfee6 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -217,6 +217,10 @@
sub getpidswithsocketinode {
my $sockid = shift;
+ if (! defined ($sockid)) {
+ msvalog('verbose', "No client socket ID to check. The MSVA is probably not running as a service.\n");
+ return [];
+ }
# this appears to be how Linux symlinks open sockets in /proc/*/fd,
# as of at least 2.6.26:
my $socktarget = sprintf('socket:[%d]', $sockid);
diff --git a/gpgkeys_hkpms b/gpgkeys_hkpms
index 03a79f2..75ce01b 100755
--- a/gpgkeys_hkpms
+++ b/gpgkeys_hkpms
@@ -92,6 +92,7 @@ use warnings;
($status, $ret) = $self->{client}->query_agent('https', $self->{config}->{host}, 'server', 'x509pem', $certpem, 'never');
} else {
use Crypt::Monkeysphere::MSVA;
+ $self->{logger}->log('verbose', "Could not find a running agent (MONKEYSPHERE_VALIDATION_AGENT_SOCKET env var).\nFalling back to in-process certificate checks.\n");
# If there is no running agent, we might want to be able to fall
# back here.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list