summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-12-02 20:38:12 +0000
committerroam <roam@FreeBSD.org>2002-12-02 20:38:12 +0000
commitd5bbe3c01c78626ed02452d3eaac3327abe4ccd4 (patch)
tree8ffc3b49c20fdbf55fc31617a73d700d0450e9b5 /usr.bin/finger
parenta396a56831490577d914ea4c1d26aec5728b6cdc (diff)
downloadFreeBSD-src-d5bbe3c01c78626ed02452d3eaac3327abe4ccd4.zip
FreeBSD-src-d5bbe3c01c78626ed02452d3eaac3327abe4ccd4.tar.gz
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 <jrm@delta-e.com.au> Approved by: re (rwatson) MFC after: 2 weeks
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/net.c2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud