diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-26 15:32:30 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-26 15:32:30 +0100 |
commit | ec105f28b533504725af9510c4ea0b189b427a18 (patch) | |
tree | 3614e533e8bf1ecd178b418681591da606baf70a /nslcd/nslcd.c | |
parent | 42d2f9a937ec24702da2de6b4052acbfd68e5949 (diff) |
log error when getpeercred() returned nothing
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@567 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/nslcd.c')
-rw-r--r-- | nslcd/nslcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |