From ec105f28b533504725af9510c4ea0b189b427a18 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 26 Jan 2008 14:32:30 +0000 Subject: log error when getpeercred() returned nothing git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@567 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/nslcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nslcd/nslcd.c') diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c index eb8299d..ac1d941 100644 --- a/nslcd/nslcd.c +++ b/nslcd/nslcd.c @@ -325,7 +325,7 @@ static void handleconnection(int sock,MYLDAP_SESSION *session) pid_t pid; /* log connection */ if (getpeercred(sock,&uid,&gid,&pid)) - log_log(LOG_DEBUG,"connection from unknown client"); + log_log(LOG_DEBUG,"connection from unknown client: %s",strerror(errno)); else log_log(LOG_DEBUG,"connection from pid=%d uid=%d gid=%d", (int)pid,(int)uid,(int)gid); -- cgit v1.2.3