summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-02-24 08:45:57 +0000
committereivind <eivind@FreeBSD.org>1998-02-24 08:45:57 +0000
commite3cd6b581bd454c1abf7b48aecd016ca8e66ec6e (patch)
tree2c7d1fbc4e4ebf66ec12ce37df77d5449bf24330 /libexec/ftpd
parentfe00dbc3ff63d7a5982cc7aacca4344a8e781bde (diff)
downloadFreeBSD-src-e3cd6b581bd454c1abf7b48aecd016ca8e66ec6e.zip
FreeBSD-src-e3cd6b581bd454c1abf7b48aecd016ca8e66ec6e.tar.gz
Make ftpd log IP-addresses in addition to hostnames.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c5
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));
}
}
OpenPOWER on IntegriCloud