diff options
author | eivind <eivind@FreeBSD.org> | 1998-02-24 08:45:57 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-02-24 08:45:57 +0000 |
commit | e3cd6b581bd454c1abf7b48aecd016ca8e66ec6e (patch) | |
tree | 2c7d1fbc4e4ebf66ec12ce37df77d5449bf24330 /libexec/ftpd/ftpd.c | |
parent | fe00dbc3ff63d7a5982cc7aacca4344a8e781bde (diff) | |
download | FreeBSD-src-e3cd6b581bd454c1abf7b48aecd016ca8e66ec6e.zip FreeBSD-src-e3cd6b581bd454c1abf7b48aecd016ca8e66ec6e.tar.gz |
Make ftpd log IP-addresses in addition to hostnames.
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r-- | libexec/ftpd/ftpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 83c1727..7f40d6c 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -44,7 +44,7 @@ static char copyright[] = static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #endif static const char rcsid[] = - "$Id: ftpd.c,v 1.43 1997/11/21 07:38:42 charnier Exp $"; + "$Id: ftpd.c,v 1.44 1997/12/24 19:13:22 imp Exp $"; #endif /* not lint */ /* @@ -1912,7 +1912,8 @@ dolog(sin) remotehost, hostname); else #endif - syslog(LOG_INFO, "connection from %s", remotehost); + syslog(LOG_INFO, "connection from %s (%s)", remotehost, + inet_ntoa(sin->sin_addr)); } } |