summaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-06 17:43:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-06 17:43:29 +0200
commitf6916dbed4233ef0e202d1b299cb5a2e9287a696 (patch)
treea761598c5f3d6e935239d8631e7f984c4cd490d6 /networking/ftpd.c
parentfcad7681f8a835f5c7b2093da505f46865a89d25 (diff)
downloadbusybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.tar.gz
busybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.tar.bz2
busybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.zip
telnetd: fill hostname field in utmp/wtmp records
function old new delta get_lsa - 109 +109 make_new_session 438 504 +66 get_peer_lsa - 10 +10 ftpd_main 2340 2267 -73 get_sock_lsa 101 10 -91 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/2 up/down: 185/-164) Total: 21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 375cc0ca5..9d43ea3a2 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -461,21 +461,6 @@ handle_epsv(void)
461 free(response); 461 free(response);
462} 462}
463 463
464/* libbb candidate */
465static
466len_and_sockaddr* get_peer_lsa(int fd)
467{
468 len_and_sockaddr *lsa;
469 socklen_t len = 0;
470
471 if (getpeername(fd, NULL, &len) != 0)
472 return NULL;
473 lsa = xzalloc(LSA_LEN_SIZE + len);
474 lsa->len = len;
475 getpeername(fd, &lsa->u.sa, &lsa->len);
476 return lsa;
477}
478
479static void 464static void
480handle_port(void) 465handle_port(void)
481{ 466{