From 260758a2633a1a134568cd1fee6b90fdf00a0082 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 11 Apr 2007 19:11:54 +0000 Subject: Remove T/TCP support, and the -T option which was needed to disable it. MFC after: 3 weeks --- usr.bin/finger/net.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'usr.bin/finger/net.c') diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 2bd35ad..5260a2d 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -144,13 +144,7 @@ do_protocol(const char *name, const struct addrinfo *ai) iov[msg.msg_iovlen].iov_base = neteol; iov[msg.msg_iovlen++].iov_len = 2; - /* - * -T disables data-on-SYN: compatibility option to finger broken - * hosts. Also, the implicit-open API is broken on IPv6, so do - * the explicit connect there, too. - */ - if ((Tflag || ai->ai_addr->sa_family == AF_INET6) - && connect(s, ai->ai_addr, ai->ai_addrlen) < 0) { + if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) { warn("connect"); close(s); return -1; -- cgit v1.1