From d5bbe3c01c78626ed02452d3eaac3327abe4ccd4 Mon Sep 17 00:00:00 2001 From: roam Date: Mon, 2 Dec 2002 20:38:12 +0000 Subject: Make a CR/LF sequence measure up to its name: the order of the CR and LF characters was reversed, resulting in some network appliances, including at least some NAS devices from Ascend, not recognizing our finger(1) request. PR: 45914 Submitted by: J R Matthews Approved by: re (rwatson) MFC after: 2 weeks --- usr.bin/finger/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/finger') diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 240cbca..a3c40b5 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -116,7 +116,7 @@ do_protocol(const char *name, const struct addrinfo *ai) struct iovec iov[3]; struct msghdr msg; static char slash_w[] = "/W "; - static char neteol[] = "\n\r"; + static char neteol[] = "\r\n"; s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (s < 0) { -- cgit v1.1