diff options
author | wollman <wollman@FreeBSD.org> | 1997-08-01 20:10:44 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-08-01 20:10:44 +0000 |
commit | 9233cdeb45364b46af24dfc626a835aa05bbc378 (patch) | |
tree | ee12bfcf56e3730c69558144e771ad5a17e50520 /usr.bin/finger | |
parent | 280ba13a95654edf06037c9aeab35976a3c35050 (diff) | |
download | FreeBSD-src-9233cdeb45364b46af24dfc626a835aa05bbc378.zip FreeBSD-src-9233cdeb45364b46af24dfc626a835aa05bbc378.tar.gz |
So somebody actually found language in the FINGER RFC which requires
implementations to leave the client side open until the server closes.
While this is totally idiotic, it seems as if some servers actually require
it (e.g., the one at mit.mit.edu). So, we bow to the weight of the bogus
standard and disable the initial close. Hopefully now fetch(1) can serve
the role of T/TCP demonstration application.
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/net.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index e4bbfc6..5c4b2f01 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95"; #else static const char rcsid[] = - "$Id$"; + "$Id: net.c,v 1.8 1997/07/02 06:34:50 charnier Exp $"; #endif #endif /* not lint */ @@ -112,7 +112,7 @@ netfinger(name) msg.msg_iovlen = 0; msg.msg_control = 0; msg.msg_controllen = 0; - msg.msg_flags = MSG_EOF; + msg.msg_flags = 0; /* -l flag for remote fingerd */ if (lflag) { @@ -131,7 +131,7 @@ netfinger(name) return; } - if (sendmsg(s, &msg, MSG_EOF) < 0) { + if (sendmsg(s, &msg, 0) < 0) { perror("finger: sendmsg"); close(s); return; |