From 0a6f23d06dc6d7c43844ef5bf53c3c4884b03d02 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 11 Mar 2013 00:14:38 -0400 Subject: [PATCH] p0f: added path to socket in error message if p0f cannot connect, provide a more descriptive error message. Particularly useful for a p0f plugin developer that runs both p0f v2 and v3 at the same time. --- plugins/ident/p0f | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ident/p0f b/plugins/ident/p0f index 06c2da4..0493e77 100644 --- a/plugins/ident/p0f +++ b/plugins/ident/p0f @@ -256,7 +256,7 @@ sub query_p0f_v2 { socket(SOCK, PF_UNIX, SOCK_STREAM, 0) or $self->log(LOGERROR, "socket: $!"), return; connect(SOCK, sockaddr_un($p0f_socket)) - or $self->log(LOGERROR, "connect: $!"), return; + or $self->log(LOGERROR, "connect: $! ($p0f_socket)"), return; defined syswrite SOCK, $query or $self->log(LOGERROR, "write: $!"), close SOCK, return;