From b43e567dbf46d274782b1ae3851d0db696190c0b Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 13 Oct 2012 04:19:56 +0200 Subject: Show user name sent by identd --- src/common/identd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/identd.c b/src/common/identd.c index ab1a7af4..5ef5e0c6 100644 --- a/src/common/identd.c +++ b/src/common/identd.c @@ -58,8 +58,8 @@ identd (char *username) identd_is_running = FALSE; - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", - inet_ntoa (addr.sin_addr)); + snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", + inet_ntoa (addr.sin_addr), username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); @@ -139,7 +139,7 @@ identd_ipv6 (char *username) snprintf (ipv6buf, sizeof (ipv6buf) - 1, "[SOCKET ERROR: 0x%X]", WSAGetLastError ()); } - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", ipv6buf); + snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", ipv6buf, username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); -- cgit 1.4.1